datauri

package
v0.0.0-...-d5f2d95 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidDataURI = errors.New("invalid data uri")

Functions

This section is empty.

Types

type DataURI

type DataURI struct {
	MediaType string
	Params    map[string]string
	Data      []byte
}

func Parse

func Parse(dataURI string) (*DataURI, error)

func (*DataURI) Encoded

func (d *DataURI) Encoded(base64Encoded bool) string

func (DataURI) IsZero

func (d DataURI) IsZero() bool

func (DataURI) MarshalText

func (d DataURI) MarshalText() ([]byte, error)

func (DataURI) OpenAPISchemaFormat

func (DataURI) OpenAPISchemaFormat() string

func (DataURI) String

func (d DataURI) String() string

func (*DataURI) UnmarshalText

func (d *DataURI) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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