Documentation
¶
Index ¶
- Constants
- func Convert(u *url.URL, ignore func(*url.URL) bool) (string, error)
- func ConvertContentImage(content string, u *url.URL, ignoreImageUrlFunc func(*url.URL) bool) string
- func ConvertCssImage(content string, u *url.URL, ignoreImageUrlFunc func(*url.URL) bool) string
- func ConvertDataURI(u *url.URL) (string, error)
- func ConvertExternalCss(content string, u *url.URL, ignoreCssUrlFunc func(*url.URL) bool, ...) string
- func ConvertExternalJs(content string, u *url.URL, ignore func(*url.URL) bool) string
- type Converter
Constants ¶
View Source
const ( U_URL = iota U_FILE U_DATA U_UNKNOWN )
URL types(local file is also considered as url)
Variables ¶
This section is empty.
Functions ¶
func ConvertContentImage ¶
Convert images in html into data-uri format
func ConvertCssImage ¶
Convert background images into data-uri format
func ConvertDataURI ¶
Convert url into data-uri format
Types ¶
Click to show internal directories.
Click to hide internal directories.