properties

package
v0.0.0-...-eca1bb0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidUnmarshal = errors.New("v must be a non-nil struct pointer")
	ErrInvalidMarshal   = errors.New("v must be of type map, map pointer, struct or struct pointer")
	ErrInvalidPropBytes = errors.New("bytes are not from valid .properties config")
	ErrUnsupportedType  = errors.New("unsupported type")
)

Functions

func Marshal

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

func Unmarshal

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

func UnmarshalKV

func UnmarshalKV(kv map[string]string, v interface{}) error

func UnmarshalKey

func UnmarshalKey(key string, data []byte, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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