nbt

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: May 1, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any struct {
	Value
	// contains filtered or unexported fields
}

func NewAny

func NewAny(value string) *Any

func (*Any) ToString

func (a *Any) ToString() string

type Compound

type Compound struct {
	Value
	// contains filtered or unexported fields
}

func NewCompound

func NewCompound() *Compound

func (*Compound) Get

func (c *Compound) Get(key string) (Value, bool)

func (*Compound) Set

func (c *Compound) Set(key string, value Value) *Compound

func (*Compound) Size added in v0.0.11

func (c *Compound) Size() int

func (*Compound) ToString

func (c *Compound) ToString() string

type Double

type Double struct {
	Value float64
}

func NewDouble

func NewDouble(value float64) *Double

func (*Double) ToString

func (d *Double) ToString() string

type Int

type Int struct {
	Value
	// contains filtered or unexported fields
}

func NewInt

func NewInt(value int64) *Int

func (*Int) ToString

func (i *Int) ToString() string

type List

type List struct {
	Value
	// contains filtered or unexported fields
}

func NewList

func NewList(values ...Value) *List

func (*List) ToString

func (l *List) ToString() string

type String

type String struct {
	Value
	// contains filtered or unexported fields
}

func NewString

func NewString(value string) *String

func (*String) ToString

func (s *String) ToString() string

type Value

type Value interface {
	ToString() string
}

Jump to

Keyboard shortcuts

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