Documentation ¶
Index ¶
- Constants
- func AbsInt(v int) int
- func AbsInt32(v int32) int32
- func AbsInt64(v int64) int64
- func ArrayContainInt(a []int, f int) bool
- func ArrayContainString(a []string, f string) bool
- func CompressData(src []byte) []byte
- func CrashLog()
- func DeCompressData(src []byte) ([]byte, error)
- func DumpStacks() string
- func Elapsed(f func(d time.Duration)) func()
- func GetDataDir() string
- func GetEngineDir() string
- func GetMd5String(s string) string
- func GetNodeDir() string
- func GetNowUpdateInSecond() time.Time
- func GetOutboundIP() (net.IP, error)
- func GetSrcDir() string
- func Guid() string
- func HIINT16(I int32) int16
- func HIINT32(I int64) int32
- func HashString(s string) uint32
- func Hex2Num(str string, n int) int
- func Ini()
- func Int32ArrayToString(a []int32, delim string) string
- func Int64ArrayToString(a []int64, delim string) string
- func IntArrayToString(a []int, delim string) string
- func IsInt(r float64) bool
- func LOINT16(l int32) int16
- func LOINT32(l int64) int32
- func LoadJson(filename string, conf interface{}) error
- func MAKEINT32(high int16, low int16) int32
- func MAKEINT64(high int32, low int32) int64
- func MaxOfInt(vars ...int) int
- func MaxOfInt64(vars ...int64) int64
- func MinOfInt(vars ...int) int
- func MinOfInt64(vars ...int64) int64
- func NumToHex(num, n int) string
- func RandInt() int32
- func RandInt31n(n int) int32
- func RandStr(l int) string
- func Rc4(key string, src []byte) ([]byte, error)
- func SafeDivide(a int64, b int64) int64
- func SaveJson(filename string, conf interface{}) error
- func Shuffle(n int, swap func(i, j int))
- func StructToTable(v interface{}) string
- func UniqueId() string
- func WrapString(s string, n int) string
- type EngineConfiguration
- type StrTable
- type StrTableLine
Constants ¶
View Source
const ( LITTLE_LETTERS = 36 FULL_LETTERS = 62 )
Variables ¶
This section is empty.
Functions ¶
func ArrayContainInt ¶
func ArrayContainString ¶
func CompressData ¶
func DeCompressData ¶
func DumpStacks ¶
func DumpStacks() string
func GetDataDir ¶
func GetDataDir() string
func GetEngineDir ¶
func GetEngineDir() string
func GetMd5String ¶
func GetNodeDir ¶
func GetNodeDir() string
func GetNowUpdateInSecond ¶
func GetOutboundIP ¶
func HashString ¶
func Int32ArrayToString ¶
func Int64ArrayToString ¶
func IntArrayToString ¶
func MaxOfInt64 ¶
func MinOfInt64 ¶
func RandInt31n ¶
func SafeDivide ¶
func StructToTable ¶
func StructToTable(v interface{}) string
func WrapString ¶
Types ¶
type EngineConfiguration ¶
type StrTable ¶
type StrTable struct {
// contains filtered or unexported fields
}
func (*StrTable) AddLine ¶
func (s *StrTable) AddLine(l StrTableLine)
func (*StrTable) FromStruct ¶
type StrTableLine ¶
type StrTableLine struct {
// contains filtered or unexported fields
}
func (*StrTableLine) AddData ¶
func (s *StrTableLine) AddData(d string)
func (*StrTableLine) FromStruct ¶
func (s *StrTableLine) FromStruct(st *StrTable, v interface{}, trans func(name string, v interface{}) interface{})
Click to show internal directories.
Click to hide internal directories.