Documentation ¶
Overview ¶
Package jgo
util: common tool
sys: system tool
log: log tool
Index ¶
- type Map
- type Slice
- func (s *Slice) ConvertTo(output interface{})
- func (s *Slice) Filter(f func(interface{}) bool) *Slice
- func (s *Slice) GetMap(arg ...interface{}) *Map
- func (s *Slice) GetSlice(arg ...interface{}) *Slice
- func (s *Slice) GetValue(arg ...interface{}) interface{}
- func (s *Slice) ToString(arg ...interface{}) string
- type Sys
- type Util
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
Map type of map[string]interface{}
func (*Map) ConvertTo ¶
func (m *Map) ConvertTo(output interface{})
ConvertTo same as mapstructure.Decode. output must be a pointer to a map or struct.
func (*Map) GetValue ¶
func (m *Map) GetValue(arg ...interface{}) interface{}
GetValue get source value. arg must be map key or slice index.
type Slice ¶
type Slice struct {
// contains filtered or unexported fields
}
Slice type of []interface{}
func (*Slice) ConvertTo ¶
func (s *Slice) ConvertTo(output interface{})
ConvertTo same as mapstructure.Decode. output must be a pointer to a map or struct.
type Util ¶
type Util struct{}
func (Util) ByteArrayToMap ¶
ByteArrayToMap byte array to Map structure
func (*Util) JsonFileToMap ¶
JsonFileToMap load json file to Map structure
func (*Util) JsonStringToMap ¶
JsonStringToMap json string to Map structure
Source Files ¶
Click to show internal directories.
Click to hide internal directories.