Documentation
¶
Index ¶
- Variables
- func Convert(o interface{}) string
- func FromJson(_byte []byte, _o interface{}) error
- func ToJson(_o interface{}) ([]byte, error)
- type JsonMap
- func (j *JsonMap) CopyObject() map[string]interface{}
- func (j *JsonMap) Find(k string) interface{}
- func (j *JsonMap) FindBool(k string, defaultValue bool) bool
- func (j *JsonMap) FindFloat32(k string, defaultValue float32) float32
- func (j *JsonMap) FindFloat64(k string, defaultValue float64) float64
- func (j *JsonMap) FindInt(k string, defaultValue int) int
- func (j *JsonMap) FindInt32(k string, defaultValue int32) int32
- func (j *JsonMap) FindInt64(k string, defaultValue int64) int64
- func (j *JsonMap) FindMap(k string, defaultValue map[string]interface{}) map[string]interface{}
- func (j *JsonMap) FindSilce(k string, defaultValue []interface{}) []interface{}
- func (j *JsonMap) FindString(k string, defaultValue string) string
- func (j *JsonMap) GetObject() map[string]interface{}
- func (j *JsonMap) Insert(base, k string, v interface{})
- func (j *JsonMap) PPrint() string
- func (j *JsonMap) Print() string
- func (j *JsonMap) Remove(k string)
- func (j *JsonMap) Search(keyIncluded string, searchOpt string) []map[string]interface{}
- type YamlMap
- type YamlObject
Constants ¶
This section is empty.
Variables ¶
View Source
var BoolType = reflect.TypeOf(false)
View Source
var Float64Type = reflect.TypeOf(float64(1))
View Source
var IntType = reflect.TypeOf(1)
** reflect type definition **
View Source
var JsonMapType = reflect.TypeOf((map[string]interface{})(nil))
View Source
var SPLIT_TOKEN string = "."
** Token for key depth **
View Source
var SliceMapType = reflect.TypeOf([]map[string]interface{}(nil))
View Source
var SliceType = reflect.TypeOf([]interface{}(nil))
View Source
var StringType = reflect.TypeOf(string(""))
View Source
var YamlMapType = reflect.TypeOf((map[interface{}]interface{})(nil))
yamltype
Functions ¶
Types ¶
type JsonMap ¶
type JsonMap struct {
// contains filtered or unexported fields
}
func (*JsonMap) CopyObject ¶
type YamlMap ¶
type YamlMap struct {
// contains filtered or unexported fields
}
func NewYamlMap ¶
func NewYamlMapFile ¶
func NewYamlObject ¶
type YamlObject ¶
type YamlObject struct {
// contains filtered or unexported fields
}
func (*YamlObject) Print ¶
func (o *YamlObject) Print() (string, error)
Click to show internal directories.
Click to hide internal directories.