parser

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode added in v0.8.0

func Decode(specType SpecType, data []byte, result any, opts *Options) error

func Encode added in v0.8.0

func Encode(specType SpecType, data any) ([]byte, error)

Types

type Options added in v0.8.0

type Options types.Options

type Registry

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

func (*Registry) GetParser

func (r *Registry) GetParser(specType SpecType) (types.Parser, bool)

func (*Registry) RegisterParser

func (r *Registry) RegisterParser(specType SpecType, p types.Parser)

type SpecType

type SpecType string
const (
	SpecTypeEnsembleV1 SpecType = "ensembleV1"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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