💾 Archived View for code.pfad.fr › gohmekit › tlv8 captured on 2023-09-08 at 15:53:19. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-07-10)

➡️ Next capture (2023-12-28)

🚧 View Differences

-=-=-=-=-=-=-

tlv8 package - code.pfad.fr/gohmekit

import "code.pfad.fr/gohmekit/tlv8"

Functions

func Marshal

func Marshal(v any) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, v any) error

Types

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) Decoder

func (Decoder) Decode

func (d Decoder) Decode(v any) error

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func NewEncoder

func NewEncoder(w io.Writer) *Encoder

func (Encoder) Encode

func (e Encoder) Encode(v any) error

type InvalidUnmarshalError

type InvalidUnmarshalError struct {
	Type reflect.Type
}

func (InvalidUnmarshalError) Error

func (e InvalidUnmarshalError) Error() string

Files

marshal.go

parse_tag.go

unmarshal.go

Forge

https://codeberg.org/pfad.fr/gohmekit

git clone

https://codeberg.org/pfad.fr/gohmekit.git
git@codeberg.org:pfad.fr/gohmekit.git