Documentation ¶
Index ¶
- Constants
- type Properties
- func (si *Properties) Add(k string, t byte, v interface{}) bool
- func (si *Properties) AddBool(k string, v bool) bool
- func (si *Properties) AddFloat32(k string, v float32) bool
- func (si *Properties) AddInt32(k string, v int32) bool
- func (si *Properties) AddNil(k string) bool
- func (si *Properties) AddString(k string, v string) bool
- func (si *Properties) AddUint32(k string, v uint32) bool
- func (si *Properties) AsString(k string) string
- func (si *Properties) Clear()
- func (si *Properties) MarshalJSON() ([]byte, error)
- type Property
Constants ¶
View Source
const ( PROP_TYPE_NULL byte = iota PROP_TYPE_BOOL PROP_TYPE_STRING PROP_TYPE_INT32 PROP_TYPE_UINT32 PROP_TYPE_FLOAT32 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Properties ¶
func New ¶
func New() *Properties
func (*Properties) AddFloat32 ¶
func (si *Properties) AddFloat32(k string, v float32) bool
func (*Properties) AddNil ¶
func (si *Properties) AddNil(k string) bool
func (*Properties) AsString ¶
func (si *Properties) AsString(k string) string
func (*Properties) Clear ¶
func (si *Properties) Clear()
func (*Properties) MarshalJSON ¶
func (si *Properties) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.