Versions in this module Expand all Collapse all v1 v1.0.0 May 4, 2022 Changes in this version + const TagByte + const TagByteArray + const TagCompound + const TagDouble + const TagEnd + const TagFloat + const TagInt + const TagIntArray + const TagInvalid + const TagList + const TagLong + const TagLongArray + const TagShort + const TagString + func Marshal(v interface{}) ([]byte, error) + func Unmarshal(data []byte, v any) error + type Decoder struct + func NewDecoder(reader io.Reader) *Decoder + func (d Decoder) Decode(v any) (string, error) + type Encoder struct + func NewEncoder(writer io.Writer) *Encoder + func (e *Encoder) Encode(value any, tagName string) error + func (e *Encoder) WriteTag(value reflect.Value, tagType byte, tagName string) error + type Marshaler interface + MarshalNBT func(writer io.Writer) error + TagType func() byte + type Unmarshaler interface + UnmarshalNBT func(tagType byte, reader io.Reader) error