translate

package
v0.231.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesYamlToArrai

func BytesYamlToArrai(bytes []byte) (rel.Value, error)

func FromArrai added in v0.173.0

func FromArrai(v rel.Value) (interface{}, error)

FromArrai translates an arrai value to an object suitable for marshalling into json/yaml.

FromArrai translation rules is the reverse of ToArrai.

func ToArrai

func ToArrai(data interface{}) (rel.Value, error)

ToArrai translates an object unmarshalled from json/yaml into an arrai value.

translation follows the rules

object -> {|@,@item|, |key,val|, ...}
array  -> array
null   -> none
other  -> value (bools, numerics, strings)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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