Versions in this module Expand all Collapse all v1 v1.0.0 Apr 12, 2024 Changes in this version + const EncodingASCII + const EncodingBase64 + func EncodeBytes(data []byte) string + func Escape(data []byte) string + func EscapeString(s string) string + func Unescape(s string) ([]byte, error) + func UnescapeToString(s string) (string, error) + type DataURL struct + Data []byte + Encoding string + func Decode(r io.Reader) (*DataURL, error) + func DecodeString(s string) (*DataURL, error) + func New(data []byte, mediatype string, paramPairs ...string) *DataURL + func (du *DataURL) MarshalText() ([]byte, error) + func (du *DataURL) String() string + func (du *DataURL) UnmarshalText(text []byte) error + func (du *DataURL) WriteTo(w io.Writer) (n int64, err error) + type MediaType struct + Params map[string]string + Subtype string + Type string + func (mt *MediaType) ContentType() string + func (mt *MediaType) String() string