encoding

package
v1.7.7 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT, Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Marshal = json.Marshal

	Unmarshal = json.Unmarshal
)

Functions

func UnmarshalTextFor added in v1.4.0

func UnmarshalTextFor[T any](text []byte) error

Types

type Codec added in v1.7.4

type Codec interface {
	Unmarshaler
	Marshaler
}

type Decoder

type Decoder interface {
	Decode(io.Reader, any) error
}

type Encoder

type Encoder interface {
	Encode(io.Writer, any) error
}

type Format

type Format string
const (
	Json     Format = "json"
	Yaml     Format = "yaml"
	Toml     Format = "toml"
	Yml      Format = "yml"
	Protobuf Format = "protobuf"
	Xml      Format = "xml"
	Text     Format = "text"
	Base64   Format = "base64"
)

type Marshaler added in v1.3.20

type Marshaler interface {
	Marshal(v any) ([]byte, error)
}

type Unmarshaler

type Unmarshaler interface {
	Unmarshal([]byte, any) error
}

Directories

Path Synopsis
svg
Package svg parses Gerber to SVG.
Package svg parses Gerber to SVG.
Partial reference https://github.com/grafov/m3u8/blob/master/reader.go
Partial reference https://github.com/grafov/m3u8/blob/master/reader.go

Jump to

Keyboard shortcuts

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