types

package
v0.0.0-...-a09fd22 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MergeKV

func MergeKV(m ...map[string]string) map[string]string

Types

type JSON

type JSON string

func MakeJSON

func MakeJSON(v interface{}) JSON

func MakePrettyJSON

func MakePrettyJSON(v interface{}) JSON

func (JSON) Bytes

func (s JSON) Bytes() []byte

func (JSON) Object

func (s JSON) Object() Object

func (JSON) String

func (s JSON) String() string

func (JSON) Unmarshal

func (s JSON) Unmarshal(v interface{}) error

func (JSON) Value

func (s JSON) Value() interface{}

type KV

type KV map[string]string

func MakeKV

func MakeKV(kv ...string) KV

func (KV) Copy

func (m KV) Copy() KV

func (KV) JSON

func (m KV) JSON() JSON

func (KV) Keys

func (m KV) Keys() []string

func (KV) Map

func (m KV) Map() map[string]string

func (KV) Merge

func (m KV) Merge(n KV) KV

func (KV) ReverseKeys

func (m KV) ReverseKeys() []string

func (KV) Slice

func (m KV) Slice() []string

func (KV) YAML

func (m KV) YAML() YAML

type Object

type Object map[string]interface{}

func MakeObject

func MakeObject(kv ...string) Object

func (Object) Copy

func (o Object) Copy() Object

func (Object) JSON

func (o Object) JSON() JSON

func (Object) Map

func (o Object) Map() map[string]interface{}

func (Object) Merge

func (o Object) Merge(u Object) Object

func (Object) Slice

func (o Object) Slice() []string

func (Object) YAML

func (o Object) YAML() YAML

type YAML

type YAML string

func MakeYAML

func MakeYAML(v interface{}) YAML

func (YAML) Bytes

func (s YAML) Bytes() []byte

func (YAML) String

func (s YAML) String() string

func (YAML) TryValue

func (s YAML) TryValue() (interface{}, error)

func (YAML) Unmarshal

func (s YAML) Unmarshal(v interface{}) error

func (YAML) Value

func (s YAML) Value() interface{}

Jump to

Keyboard shortcuts

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