godict

package
v0.0.0-...-67928e6 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Y2JConvert

func Y2JConvert(i interface{}) interface{}

Types

type Dict

type Dict map[interface{}]interface{}

Dict : Dictionary of anything type

func LoadFromYamlFiles

func LoadFromYamlFiles(filenames []string) (Dict, error)

LoadFromYamlFiles : Load dictionary from YAML encoded files

func Merge

func Merge(a Dict, b Dict) (Dict, error)

Merge : Merge 2 dictionnaries

func (Dict) ExtractFromXPath

func (d Dict) ExtractFromXPath(path string) (interface{}, error)

ExtractFromXPath : Try to get a node from path

func (*Dict) FromYamlData

func (d *Dict) FromYamlData(data []byte) error

FromYamlData : unMarshal data into Dict

func (*Dict) ToJsonData

func (d *Dict) ToJsonData() ([]byte, error)

ToJsonData : Marshal Dict into data

func (*Dict) ToYamlData

func (d *Dict) ToYamlData() ([]byte, error)

ToYamlData : Marshal Dict into data

Jump to

Keyboard shortcuts

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