marshal

package
v0.0.0-...-307fc59 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(scope types.Scope, item interface{}) (*types.MarshalItem, error)

Types

type Unmarshaller

type Unmarshaller struct {
	Handlers map[string]types.Unmarshaller
}

func NewUnmarshaller

func NewUnmarshaller() *Unmarshaller

func (*Unmarshaller) RegisterHandler

func (self *Unmarshaller) RegisterHandler(name string,
	unmarshaller types.Unmarshaller)

func (*Unmarshaller) Unmarshal

func (self *Unmarshaller) Unmarshal(
	unmarshaller types.Unmarshaller,
	scope types.Scope, item *types.MarshalItem) (interface{}, error)

Jump to

Keyboard shortcuts

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