Documentation
¶
Overview ¶
Package encoding defines types and functions used for dealing with stringified-JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Stringify ¶ added in v0.1.3
func Stringify(v interface{}) (interface{}, error)
Stringify converts any supported type into a stringified value
func Unstringify ¶ added in v0.1.3
Unstringify takes a stringified representation of a value and populates it into the supplied interface
Types ¶
type Bool ¶
type Bool bool
Bool is a bool type to be used when the default json marshaler/unmarshaler cannot be avoided
func (Bool) MarshalJSON ¶
func (*Bool) UnmarshalJSON ¶
type Float ¶
type Float float64
Float is a float type to be used when the default json marshaler/unmarshaler cannot be avoided
func (Float) MarshalJSON ¶
func (*Float) UnmarshalJSON ¶
type Int ¶
type Int int64
Int is an int type to be used when the default json marshaler/unmarshaler cannot be avoided
func (Int) MarshalJSON ¶
func (*Int) UnmarshalJSON ¶
type String ¶
type String string
String is a string type to be used when the default json marshaler/unmarshaler cannot be avoided
func (String) MarshalJSON ¶
func (*String) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.