Versions in this module Expand all Collapse all v0 v0.1.0 Mar 26, 2021 Changes in this version + var ErrInvalidDataURI = errors.New("datauri: invalid DataURI") + var ErrUnsupportedEncoding = errors.New("datauri: unsupported encoding") + func DecodeDataURI(ctx context.Context, dataURI string) ([]byte, string, error) + type AmrEncoding struct + func (enc *AmrEncoding) Decode(dataURI []byte) (string, []byte) + type BitmapEncoding struct + func (enc *BitmapEncoding) Decode(dataURI []byte) (string, []byte) + type Encoding interface + Decode func(dataURI []byte) (mediaType string, buf []byte) + type GifEncoding struct + func (enc *GifEncoding) Decode(dataURI []byte) (string, []byte) + type JpegEncoding struct + func (enc *JpegEncoding) Decode(dataURI []byte) (string, []byte) + type PngEncoding struct + func (enc *PngEncoding) Decode(dataURI []byte) (string, []byte)