Documentation ¶
Index ¶
- Constants
- func ConvertTo8BitPNG(img image.Image, imgData *bytes.Buffer) error
- func CurrentDir() (string, error)
- func FindMaxValueInSlice(values []int) int
- func ImageType(mimeStr string) (tp string)
- func IsURLValid(value string) bool
- func IsValueInSlice(valueToCheck string, values []string) bool
- func PathSetup(source, name string) (string, error)
- func TrimAndSplitURL(u string) []string
- func URLSource(u string) (string, error)
Constants ¶
View Source
const IMAGEREGEX = `<img[^>]+src="([^">]+)"`
IMAGEREGEX to extract the image html tag
Variables ¶
This section is empty.
Functions ¶
func ConvertTo8BitPNG ¶
ConvertTo8BitPNG converts an image of any type to a PNG with 8-bit color depth
func FindMaxValueInSlice ¶ added in v0.6.1
FindMaxValueInSlice return the max value
func IsURLValid ¶ added in v0.6.1
IsURLValid will exclude those url containing `.gif` and `logo`.
func IsValueInSlice ¶
IsValueInSlice will check if a value is already in a slice.
func TrimAndSplitURL ¶ added in v0.10.1
TrimAndSplitURL will trim tailing "/" and split url
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.