Documentation
¶
Index ¶
- func BuildJSON(json interface{}, includeRoot bool, root string) interface{}
- func GetFieldNamesByKey(s interface{}, key string) []string
- func GetFieldValueByName(s interface{}, name string) interface{}
- func IncludeRootInJSON(json interface{}, includeRoot bool, root string) interface{}
- func NotFoundError(itemName string) error
- func Range(min int, max int) []int
- func Times(n int, handler func(int) bool)
- type Dictionary
- func (dict *Dictionary) Set(key string, value interface{})
- func (dict *Dictionary) Value(key string) interface{}
- func (dict *Dictionary) ValueBool(key string) bool
- func (dict *Dictionary) ValueFloat64(key string, fallback float64) float64
- func (dict *Dictionary) ValueInt(key string, fallback int) int
- func (dict *Dictionary) ValueList(key string) []interface{}
- func (dict *Dictionary) ValueStr(key string) string
- type Enumerable
- type H
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFieldNamesByKey ¶
func GetFieldValueByName ¶
func GetFieldValueByName(s interface{}, name string) interface{}
func IncludeRootInJSON ¶
IncludeRootInJSON used prepend root in JSON
func NotFoundError ¶
NotFoundError used to generate error for not round record
Types ¶
type Dictionary ¶
type Dictionary struct {
// contains filtered or unexported fields
}
Dictionary used to provide accessibilities to dynamic hash
func MakeDictionary ¶
func MakeDictionary(properties H) *Dictionary
MakeDictionary used to instantiate dictionary instance
func (*Dictionary) Set ¶
func (dict *Dictionary) Set(key string, value interface{})
Set used to set property
func (*Dictionary) Value ¶
func (dict *Dictionary) Value(key string) interface{}
Value used to retrieve params value
func (*Dictionary) ValueBool ¶
func (dict *Dictionary) ValueBool(key string) bool
ValueBool used to retrieve params value in boolean
func (*Dictionary) ValueFloat64 ¶
func (dict *Dictionary) ValueFloat64(key string, fallback float64) float64
ValueFloat64 used to retrieve params value in float64
func (*Dictionary) ValueInt ¶
func (dict *Dictionary) ValueInt(key string, fallback int) int
ValueInt used to retrieve params value in int
func (*Dictionary) ValueList ¶
func (dict *Dictionary) ValueList(key string) []interface{}
func (*Dictionary) ValueStr ¶
func (dict *Dictionary) ValueStr(key string) string
ValueStr used to retrieve params value in string
type Enumerable ¶
type Enumerable interface{}
Click to show internal directories.
Click to hide internal directories.