Documentation ¶
Index ¶
- func Encode(mime []byte) []byte
- func EncodeFile(filename string) (string, error)
- func EncodeImageGIF(img image.Image) (string, error)
- func EncodeImageJPEG(img image.Image) (string, error)
- func EncodeImagePNG(img image.Image) (string, error)
- func EncodeReader(r io.Reader) (string, error)
- func EncodeToString(content []byte) string
- func EncodeType(mimeType string, content []byte) []byte
- func EncodeURL(url string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeFile ¶
EncodeFile encodes mime content from file to string
func EncodeImageGIF ¶
EncodeImageGIF encodes image/gif to string
func EncodeImageJPEG ¶
EncodeImageJPEG encodes image/jpeg to string
func EncodeImagePNG ¶
EncodeImagePNG encodes image/png to string
func EncodeReader ¶ added in v0.2.10
EncodeReader encodes mime content from reader to string
func EncodeToString ¶
EncodeToString encodes mime content to string
func EncodeType ¶ added in v0.2.10
EncodeType encodes mime content with specified mime type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.