Documentation
¶
Index ¶
- func IsRepeated(data interface{}) (bool, interface{})
- func JsonDecode(p []byte, v interface{}) error
- func JsonEncode(v interface{}) ([]byte, error)
- func MapToStruct(data map[string]interface{}, obj interface{}) error
- func Round(v float32) int
- func Sha1Sign(data string) string
- func SliceMapToSlice(datas []map[string]interface{}, objs []interface{})
- func TypeConversion(value string, ntype string) (reflect.Value, error)
- type Table
- type WaitGroupWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JsonDecode ¶
JsonDecode 简单封装了json的UnMarshal功能 Example pingpp.JsonDecode(param1, param2) param1:需要转换成结构体的json数据 param2:转换后数据容器
func JsonEncode ¶
JsonEncode pingpp.JsonEncode(param1)
func SliceMapToSlice ¶
func SliceMapToSlice(datas []map[string]interface{}, objs []interface{})
Types ¶
type Table ¶
func (*Table) SetMaxCellSize ¶
type WaitGroupWrapper ¶
func (*WaitGroupWrapper) WaitTimeout ¶
func (wg *WaitGroupWrapper) WaitTimeout(timeout time.Duration) bool
func (*WaitGroupWrapper) Wrap ¶
func (wg *WaitGroupWrapper) Wrap(cb func())
Click to show internal directories.
Click to hide internal directories.