Documentation
¶
Index ¶
- func Marshal(tag Tag) ([]byte, error)
- func MarshalAnonymous(tag Tag) ([]byte, error)
- func MarshalNamed(tag NamedTag) ([]byte, error)
- func WriteNamed(w io.Writer, tag NamedTag) error
- type ByteArrayTag
- type ByteTag
- type CompoundTag
- type DoubleTag
- type EndTag
- type FloatTag
- type IntArrayTag
- type IntTag
- type ListTag
- type LongArrayTag
- type LongTag
- type NamedTag
- type ShortTag
- type StringTag
- type Tag
- type TagType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalAnonymous ¶
MarshalAnonymous writes a root tag in network form: type byte + payload, without a root name.
func MarshalNamed ¶
Types ¶
type ByteArrayTag ¶
type ByteArrayTag struct {
Value []byte
}
func (ByteArrayTag) Type ¶
func (ByteArrayTag) Type() TagType
type CompoundTag ¶
type CompoundTag struct {
Fields []NamedTag
}
func (CompoundTag) Type ¶
func (CompoundTag) Type() TagType
type IntArrayTag ¶
type IntArrayTag struct {
Value []int32
}
func (IntArrayTag) Type ¶
func (IntArrayTag) Type() TagType
type LongArrayTag ¶
type LongArrayTag struct {
Value []int64
}
func (LongArrayTag) Type ¶
func (LongArrayTag) Type() TagType
type NamedTag ¶
func UnmarshalNamed ¶
type Tag ¶
type Tag interface {
Type() TagType
// contains filtered or unexported methods
}
func ReadAnonymous ¶
ReadAnonymous reads a root tag in network form: type byte + payload, without a root name.
func UnmarshalAnonymous ¶
Click to show internal directories.
Click to hide internal directories.