Documentation ¶
Index ¶
- func AppendMap(Target map[string]interface{}, Source map[string]interface{}) map[string]interface{}
- func ArrayShift(Target []map[string]interface{}) (map[string]interface{}, []map[string]interface{})
- func ByteToJSON(jsByte []byte) map[string]interface{}
- func CheckGameType(serverGameTypeID, clientGameTypeID string) messagehandle.ErrorMsg
- func CheckToken(serverToken, clientToken string) messagehandle.ErrorMsg
- func ConevrToTimeInt64(year int, month time.Month, day, hour, min, sec, nsec int) int64
- func CopyArray(source []int) []int
- func DeleteArrayElement(elementIndex interface{}, array []interface{}) []interface{}
- func GetFuncName(fun interface{}) string
- func InterfaceToBool(v interface{}) bool
- func InterfaceToDynamicInt(v interface{}) code.Code
- func InterfaceToInt(v interface{}) int
- func InterfaceToInt64(v interface{}) int64
- func InterfaceToString(v interface{}) string
- func InterfaceTofloat64(v interface{}) float64
- func IsInclude(target int, src []int) bool
- func JSONToString(v interface{}) string
- func MD5Code(data string) string
- func MapToArray(mapData map[int64]int64) (keys, values []int64)
- func NewAccount(plant, account string) string
- func NewGameAccount(encodeStr, account string) string
- func NewToken(gameAccount string) string
- func RandomMutily(rangeInt []int, pickCount int) []int
- func RangeRandom(rangeInt []int) int
- func RangeRandomInt64(rangeInt []int64) int
- func ServerNow() time.Time
- func ServerNowTime() int64
- func ServerTotalPayScoreKey(GameIndex int) string
- func StringToJSON(jsStr string) map[string]interface{}
- func ToJSONStr(data interface{}) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayShift ¶
ArrayShift Array Type []map[string]interface{}
func CheckGameType ¶
func CheckGameType(serverGameTypeID, clientGameTypeID string) messagehandle.ErrorMsg
CheckGameType Check Game Type
func CheckToken ¶
func CheckToken(serverToken, clientToken string) messagehandle.ErrorMsg
CheckToken Check Token func
func ConevrToTimeInt64 ¶
ConevrToTimeInt64 Get time point
func DeleteArrayElement ¶
func DeleteArrayElement(elementIndex interface{}, array []interface{}) []interface{}
DeleteArrayElement ...
func InterfaceToDynamicInt ¶
InterfaceToDynamicInt ...
func JSONToString ¶
func JSONToString(v interface{}) string
JSONToString conver JsonStruct to JsonString
func MapToArray ¶
MapToArray return map keys and values
func NewAccount ¶
NewAccount convert all plant account to server account
func NewGameAccount ¶
NewGameAccount new game account
func RangeRandomInt64 ¶
RangeRandomInt64 array random index
func ServerTotalPayScoreKey ¶
ServerTotalPayScoreKey ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.