maputils

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Map

type Map map[string]interface{}

func FromJSON

func FromJSON(src []byte) (Map, error)

func FromMap

func FromMap(src map[string]interface{}) Map

func FromYAML

func FromYAML(src []byte) (Map, error)

func New

func New() Map

func (Map) Clear

func (m Map) Clear() error

func (Map) Delete

func (m Map) Delete(key string) error

func (Map) Get

func (m Map) Get(key string) (interface{}, error)

func (Map) Has

func (m Map) Has(key string) (bool, error)

func (Map) Merge

func (m Map) Merge(key string, value interface{}) error

func (Map) Set

func (m Map) Set(key string, value interface{}) error

func (Map) ToJSON

func (m Map) ToJSON() ([]byte, error)

func (Map) ToMap

func (m Map) ToMap() map[string]interface{}

func (Map) ToYAML

func (m Map) ToYAML() ([]byte, error)

Jump to

Keyboard shortcuts

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