Documentation
¶
Index ¶
- Variables
- func AddToSlice(slice []interface{}, value interface{})
- func Base64Decode(in string) string
- func Base64Encode(in string) string
- func BitIsSet(value uint32, position uint32) bool
- func ComputeSlice(slice []interface{}) int64
- func CopyUint64Map(in map[uint64]uint64) map[uint64]uint64
- func CopyUint64Slice(input []uint64) []uint64
- func Cross(p1x, p1y, p2x, p2y, p3x, p3y int32) int32
- func DelNum(a, b int32) int32
- func DeleteToSlice(slice []interface{}, value interface{})
- func GenGuid() string
- func GetCurDir() string
- func GetIP() string
- func GetIPv4ByInterface(name string) ([]string, error)
- func GetMd5String(s string) string
- func InSlice(slice interface{}, value interface{}) bool
- func InitCreateID(SevrerID int64)
- func InitSliceSize(dst interface{}, size int)
- func InitStructNext(input interface{}, reset, next bool)
- func IsDirExists(path string) bool
- func IsFileExists(file string) bool
- func IsSliceContant(slice []interface{}, value interface{}) bool
- func Link(args ...interface{}) (ret string)
- func LocalIPv4s() ([]string, error)
- func Max(a, b int32) int32
- func MemSet(s unsafe.Pointer, c byte, n uintptr)
- func Min(a, b int32) int32
- func NewStructPtrAndNext(dst interface{})
- func NextID() (ret uint64)
- func ReadFile(path, gbk, sep string, f func([]string))
- func ReadYamlFile(fpath, filename string, cur interface{})
- func ResetBit(value *uint32, position uint32)
- func Segment(p1x, p1y, p2x, p2y, p3x, p3y, p4x, p4y int32) bool
- func SetBit(value *uint32, position uint32)
- func StatueFuncArrayToMap(keys []string, values []uint32) map[string]uint32
- func ToBool(i interface{}) bool
- func ToBytes(in interface{}) []byte
- func ToDuration(i interface{}) time.Duration
- func ToFloat64(i interface{}) float64
- func ToInt32(i interface{}) int32
- func ToInt64(i interface{}) int64
- func ToSlice(i interface{}) []interface{}
- func ToString(i interface{}) string
- func ToStringMap(i interface{}) map[string]interface{}
- func ToStringMapString(i interface{}) map[string]string
- func ToStringSlice(i interface{}) (ret []string)
- func ToTime(i interface{}) time.Time
- func UnLink(d string) (ret []string)
- func UpdateStructNext(ev reflect.Value, reset bool, next bool)
- func WriteYamlFile(path, filename string, cur interface{})
- type Api_toml
- type Api_yaml
- type Basic
- type D
- func (self *D) All() (ret map[string]interface{})
- func (self *D) GetMap(key ...interface{}) (ret map[string]bool)
- func (self *D) Link(args ...interface{}) (ret string)
- func (self *D) Loadxlsx(file string)
- func (self *D) SaveData(d interface{}, name ...interface{})
- func (self *D) ToString(key ...interface{}) (ret string)
- func (self *D) ToYamlString() string
- type Safe
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BuffPool = sync.Pool{ New: func() interface{} { return bytes.NewBuffer([]byte{}) }, } )
View Source
var Sonyflake *sonyflake.Sonyflake
Functions ¶
func AddToSlice ¶
func AddToSlice(slice []interface{}, value interface{})
func Base64Decode ¶
func Base64Encode ¶
func ComputeSlice ¶
func ComputeSlice(slice []interface{}) int64
func CopyUint64Slice ¶
func DeleteToSlice ¶
func DeleteToSlice(slice []interface{}, value interface{})
func GetIPv4ByInterface ¶
GetIPv4ByInterface return IPv4 address from a specific interface IPv4 addresses
func GetMd5String ¶
func InitCreateID ¶
func InitCreateID(SevrerID int64)
func IsDirExists ¶
func IsFileExists ¶
func IsSliceContant ¶
func IsSliceContant(slice []interface{}, value interface{}) bool
func LocalIPv4s ¶
LocalIPs return all non-loopback IPv4 addresses
func NewStructPtrAndNext ¶
func NewStructPtrAndNext(dst interface{})
-------------------------------------------------------------------------------
func ReadYamlFile ¶
func ReadYamlFile(fpath, filename string, cur interface{})
func StatueFuncArrayToMap ¶
* @brief 雕像加成key-value array转换为map
func ToBool ¶
func ToBool(i interface{}) bool
-------------------------------------------------------------------------------
func ToDuration ¶
func ToStringMap ¶
func ToStringMap(i interface{}) map[string]interface{}
func ToStringMapString ¶
func ToStringSlice ¶
func ToStringSlice(i interface{}) (ret []string)
func UpdateStructNext ¶
reset强制重置 next:下级初始化
func WriteYamlFile ¶
func WriteYamlFile(path, filename string, cur interface{})
Types ¶
Click to show internal directories.
Click to hide internal directories.