marshal

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func Unmarshal

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

Types

type BuilderListValue

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

func (*BuilderListValue) Kind

func (c *BuilderListValue) Kind() model.KindValue

func (*BuilderListValue) Len

func (c *BuilderListValue) Len() int

func (*BuilderListValue) ToList

func (c *BuilderListValue) ToList() (*model.List, error)

func (*BuilderListValue) ToMap

func (c *BuilderListValue) ToMap() (model.IMap, error)

func (*BuilderListValue) ToString

func (c *BuilderListValue) ToString() (*model.String, error)

type BuilderMapValue

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

func (*BuilderMapValue) Kind

func (c *BuilderMapValue) Kind() model.KindValue

func (*BuilderMapValue) Len

func (c *BuilderMapValue) Len() int

func (*BuilderMapValue) ToList

func (c *BuilderMapValue) ToList() (*model.List, error)

func (*BuilderMapValue) ToMap

func (c *BuilderMapValue) ToMap() (model.IMap, error)

func (*BuilderMapValue) ToString

func (c *BuilderMapValue) ToString() (*model.String, error)

type Marshaler

type Marshaler interface {
	MarshalModlike(value model.Value) error
}

type Unmarshaler

type Unmarshaler interface {
	UnmarshalModlike(value model.Value) error
}

Jump to

Keyboard shortcuts

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