encoding

package
v0.7.68 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrDecodeYamlCode                = ""
	ErrUnmarshalCode                 = ""
	ErrUnmarshalInvalidCode          = ""
	ErrUnmarshalSyntaxCode           = ""
	ErrUnmarshalTypeCode             = ""
	ErrUnmarshalUnsupportedTypeCode  = ""
	ErrUnmarshalUnsupportedValueCode = ""
)

Variables

This section is empty.

Functions

func ErrDecodeYaml

func ErrDecodeYaml(err error) error

ErrDecodeYaml is the error when the yaml unmarshal fails

func ErrUnmarshal

func ErrUnmarshal(err error) error

func ErrUnmarshalInvalid

func ErrUnmarshalInvalid(err error, typ reflect.Type) error

func ErrUnmarshalSyntax

func ErrUnmarshalSyntax(err error, offset int64) error

func ErrUnmarshalType

func ErrUnmarshalType(err error, value string) error

func ErrUnmarshalUnsupportedType

func ErrUnmarshalUnsupportedType(err error, typ reflect.Type) error

func ErrUnmarshalUnsupportedValue

func ErrUnmarshalUnsupportedValue(err error, value reflect.Value) error

func Marshal added in v0.7.61

func Marshal(in interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, out interface{}) error

Unmarshal parses the JSON/YAML data and stores the result in the value pointed to by out

Types

This section is empty.

Jump to

Keyboard shortcuts

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