Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeSerializedCapdata ¶
func DecodeSerializedCapdata( serializedCapdata string, transformations CapdataValueTransformations, ) (interface{}, error)
DecodeSerializedCapdata accepts JSON text representing encoded CapData and decodes it, applying specified transformations for values that otherwise hinder interchange.
func JsonMarshal ¶
JsonMarshal returns JSON text representing its input, without special replacement of "<", ">", "&", U+2028, or U+2029.
Types ¶
type CapdataBigint ¶
type CapdataBigint struct {
Normalized string
}
func NewCapdataBigint ¶
func NewCapdataBigint(str string) *CapdataBigint
type CapdataRemotable ¶
type CapdataRemotable struct { Id interface{} Iface *string Representation interface{} }
func (*CapdataRemotable) MarshalJSON ¶
func (r *CapdataRemotable) MarshalJSON() ([]byte, error)
type CapdataValueTransformations ¶
type CapdataValueTransformations struct { Bigint func(*CapdataBigint) interface{} Remotable func(*CapdataRemotable) interface{} }
Click to show internal directories.
Click to hide internal directories.