Documentation ¶
Index ¶
- func Base64FromBuffer(buf bytes.Buffer) string
- func Base64FromLocal(fname string) (string, error)
- func Base64FromRemote(url string) string
- func SaveBase64ToFile(data string, dir string, name string) (string, error)
- func SaveImage(p string, src image.Image) error
- func WaterMarkString(dst draw.Image, s string, font string, fontSize float64, x int, y int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64FromBuffer ¶
Base64FromBuffer accepts a buffer and returns a base64 encoded string.
func Base64FromLocal ¶
Base64FromLocal reads a local file and returns the base64 encoded version.
func Base64FromRemote ¶
Base64FromRemote is a better named function that presently calls NewImage which will be deprecated. Function accepts an RFC compliant URL and returns a base64 encoded result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.