mime64

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(mime []byte) []byte

Encode encodes mime content

func EncodeFile

func EncodeFile(filename string) (string, error)

EncodeFile encodes mime content from file to string

func EncodeImageGIF

func EncodeImageGIF(img image.Image) (string, error)

EncodeImageGIF encodes image/gif to string

func EncodeImageJPEG

func EncodeImageJPEG(img image.Image) (string, error)

EncodeImageJPEG encodes image/jpeg to string

func EncodeImagePNG

func EncodeImagePNG(img image.Image) (string, error)

EncodeImagePNG encodes image/png to string

func EncodeReader added in v0.2.10

func EncodeReader(r io.Reader) (string, error)

EncodeReader encodes mime content from reader to string

func EncodeToString

func EncodeToString(content []byte) string

EncodeToString encodes mime content to string

func EncodeType added in v0.2.10

func EncodeType(mimeType string, content []byte) []byte

EncodeType encodes mime content with specified mime type

func EncodeURL

func EncodeURL(url string) (string, error)

EncodeURL encodes mime content from url to string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL