Documentation ¶
Index ¶
- func VarToJson(value interface{}) ([]byte, error)
- func VarToJsonIndent(value interface{}) ([]byte, error)
- func VarToJsonIndentString(value interface{}) (string, error)
- func VarToJsonString(value interface{}) (string, error)
- func VarToStruct(value interface{}, obj interface{}) error
- func VarToToml(value interface{}) ([]byte, error)
- func VarToXml(value interface{}, rootTag ...string) ([]byte, error)
- func VarToXmlIndent(value interface{}, rootTag ...string) ([]byte, error)
- func VarToYaml(value interface{}) ([]byte, error)
- type TParser
- func (p *TParser) Append(pattern string, value interface{}) error
- func (p *TParser) Dump()
- func (p *TParser) Export() string
- func (p *TParser) Get(pattern string, def ...interface{}) interface{}
- func (p *TParser) GetArray(pattern string, def ...interface{}) []interface{}
- func (p *TParser) GetBool(pattern string, def ...interface{}) bool
- func (p *TParser) GetDuration(pattern string, def ...interface{}) time.Duration
- func (p *TParser) GetFloat32(pattern string, def ...interface{}) float32
- func (p *TParser) GetFloat64(pattern string, def ...interface{}) float64
- func (p *TParser) GetFloats(pattern string, def ...interface{}) []float64
- func (p *TParser) GetGTime(pattern string, format ...string) *xtime.Time
- func (p *TParser) GetInt(pattern string, def ...interface{}) int
- func (p *TParser) GetInt16(pattern string, def ...interface{}) int16
- func (p *TParser) GetInt32(pattern string, def ...interface{}) int32
- func (p *TParser) GetInt64(pattern string, def ...interface{}) int64
- func (p *TParser) GetInt8(pattern string, def ...interface{}) int8
- func (p *TParser) GetInterfaces(pattern string, def ...interface{}) []interface{}
- func (p *TParser) GetInts(pattern string, def ...interface{}) []int
- func (p *TParser) GetMap(pattern string, def ...interface{}) map[string]interface{}
- func (p *TParser) GetString(pattern string, def ...interface{}) string
- func (p *TParser) GetStrings(pattern string, def ...interface{}) []string
- func (p *TParser) GetStruct(pattern string, pointer interface{}, mapping ...map[string]string) error
- func (p *TParser) GetStructDeep(pattern string, pointer interface{}, mapping ...map[string]string) error
- func (p *TParser) GetStructs(pattern string, pointer interface{}, mapping ...map[string]string) error
- func (p *TParser) GetStructsDeep(pattern string, pointer interface{}, mapping ...map[string]string) error
- func (p *TParser) GetTime(pattern string, format ...string) time.Time
- func (p *TParser) GetToStruct(pattern string, pointer interface{}, mapping ...map[string]string) error
- func (p *TParser) GetToVar(pattern string, pointer interface{}) error
- func (p *TParser) GetUint(pattern string, def ...interface{}) uint
- func (p *TParser) GetUint16(pattern string, def ...interface{}) uint16
- func (p *TParser) GetUint32(pattern string, def ...interface{}) uint32
- func (p *TParser) GetUint64(pattern string, def ...interface{}) uint64
- func (p *TParser) GetUint8(pattern string, def ...interface{}) uint8
- func (p *TParser) GetVar(pattern string, def ...interface{}) *_type.TVar
- func (p *TParser) Len(pattern string) int
- func (p *TParser) MarshalJSON() ([]byte, error)
- func (p *TParser) Remove(pattern string) error
- func (p *TParser) Set(pattern string, value interface{}) error
- func (p *TParser) SetSplitChar(char byte)
- func (p *TParser) SetViolenceCheck(check bool)
- func (p *TParser) ToArray() []interface{}
- func (p *TParser) ToJson() ([]byte, error)
- func (p *TParser) ToJsonIndent() ([]byte, error)
- func (p *TParser) ToJsonIndentString() (string, error)
- func (p *TParser) ToJsonString() (string, error)
- func (p *TParser) ToMap() map[string]interface{}
- func (p *TParser) ToStruct(pointer interface{}) error
- func (p *TParser) ToStructDeep(pointer interface{}) error
- func (p *TParser) ToStructs(pointer interface{}) error
- func (p *TParser) ToStructsDeep(pointer interface{}) error
- func (p *TParser) ToToml() ([]byte, error)
- func (p *TParser) ToXml(rootTag ...string) ([]byte, error)
- func (p *TParser) ToXmlIndent(rootTag ...string) ([]byte, error)
- func (p *TParser) ToYaml() ([]byte, error)
- func (p *TParser) Value() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VarToJsonIndent ¶
func VarToJsonIndentString ¶
func VarToJsonString ¶
func VarToStruct ¶
func VarToStruct(value interface{}, obj interface{}) error
func VarToXmlIndent ¶
Types ¶
type TParser ¶
type TParser struct {
// contains filtered or unexported fields
}
func LoadContent ¶
func (*TParser) GetDuration ¶
func (*TParser) GetFloat32 ¶
func (*TParser) GetFloat64 ¶
func (*TParser) GetInterfaces ¶
func (*TParser) GetStrings ¶
func (*TParser) GetStructDeep ¶
func (*TParser) GetStructs ¶
func (*TParser) GetStructsDeep ¶
func (*TParser) GetToStruct ¶
func (*TParser) MarshalJSON ¶
func (*TParser) ToJsonIndent ¶
func (*TParser) ToJsonIndentString ¶
func (*TParser) ToJsonString ¶
func (*TParser) ToStructDeep ¶
func (*TParser) ToStructsDeep ¶
Click to show internal directories.
Click to hide internal directories.