Versions in this module Expand all Collapse all v1 v1.1.3 Dec 25, 2020 Changes in this version + func MapInit(input interface{}) + func StructInit(input interface{}) v1.1.1 Dec 19, 2020 Changes in this version + const ChunkSize + const MainCityHeight + const MainCityLength + const MainCitySize + const MapHeight + const MapLength + const WorldMainCityHeight + const WorldMainCityWidth + var BuffPool = sync.Pool + func AddUint64ToSlice(slice []uint64, value uint64) []uint64 + func AddVersionInfoBeforeData(data []byte, version int32) []byte + func Base64Decode(in string) string + func Base64Encode(in string) string + func BitIsSet(value uint32, position uint32) bool + func BoolToString(input bool) string + func Bresenham(x1, y1, x2, y2 int32) []int32 + func CheckBirthdayValid(nYear, nMonth, nDay int) bool + func CheckIntersectSquareAndBeeline(square ChartCoordinate, beeline ChartCoordinate) bool + func CheckProvinceValid(citizenNo []byte) bool + func CheckTileidValid(id int32) bool + func Clone(pb proto.Message) proto.Message + func CombineMap(m1 ...map[string]string) map[string]string + func ComputeInt32Slice(slice []int32) int32 + func ComputeUint32Slice(slice []uint32) uint32 + func ConverToInt(in interface{}) int + func ConverToInt32(in interface{}) int32 + func ConverToInt64(in interface{}) int64 + func ConverToUint32(in interface{}) uint32 + func ConverToUint64(in interface{}) uint64 + func ConvertCoordinateToId(x int32, y int32, sid int32) int32 + func ConvertIdToCoordinate(id int32) (int32, int32, int32) + func ConvertMainCityCoordinateToId(x, y uint32) uint32 + func ConvertMainCityIdToCoordinate(id uint32) (uint32, uint32) + func ConvertToBytes(in interface{}) []byte + func ConvertToString(in interface{}) string + func CopyUint64Map(in map[uint64]uint64) map[uint64]uint64 + func CopyUint64Slice(input []uint64) []uint64 + func CountMarchDistance(startid, endid int32) uint64 + func Cross(p1x, p1y, p2x, p2y, p3x, p3y int32) int32 + func DelNum(a, b int32) int32 + func DeleteInt64ToSlice(slice []int64, value int64) []int64 + func DeleteUint32FromSlice(slice []uint32, value uint32) []uint32 + func DeleteUint64ToSlice(slice []uint64, value uint64) []uint64 + func Float64ToString(input float64) string + func GenGuid() string + func GetChunkIdx(tileId int32) int + func GetCitizenNoInfo(citizenNo []byte) (err error, birthday time.Time, sex string, address string) + func GetMd5String(s string) string + func GetOccupyTileIDList(tileid, width, height int32) []int32 + func GetRandPerm(in int) []int + func GetRandomLocation() int32 + func GetRandomNum(in int32) int32 + func GetSquareTileid(centerid, width, height int32) (int32, int32) + func GetTileIdList(centerid, width, height int32) []int32 + func GetTileidByMarchTime(startid, endid int32, marchtime, totalmarchtime uint64) int32 + func GetValueByPR(pr, values []int32) (ret1 []int32) + func InsertSplitK(u64 uint64) string + func Int32MapNum(conf []int32, new *[]int32) (num int) + func Int32SliceContant(slice *[]int32, value int32) bool + func Int32ToString(input int32) string + func Int64ToString(input int64) string + func IsDirExists(path string) bool + func IsFileExists(file string) bool + func IsLeapYear(nYear int) bool + func IsMobile(text string) bool + func IsValidCitizenNo(citizenNo []byte) bool + func IsValidCitizenNo18(citizenNo18 []byte) bool + func Link(args ...interface{}) (ret string) + func Max(a, b int32) int32 + func MemSet(s unsafe.Pointer, c byte, n uintptr) + func Min(a, b int32) int32 + func ParseParameterStringToMap(in string) map[string]string + func ParseStringToFloat64List(input string) []float64 + func ParseStringToInt64List(input string) []int64 + func ParseStringToMap(input string) (map[uint64]uint64, map[uint64]uint64) + func ParseStringToUint32List(input string) []uint32 + func ParseStringToUint64List(input string) []uint64 + func ProcessTime(duration uint64) string + 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 SetDefaults(input interface{}) + func StatueFuncArrayToMap(keys []string, values []uint32) map[string]uint32 + func StatueFuncArrayToString(keys []string, values []uint32, perValue uint32) string + func StatueFuncMapToString(d map[string]string) string + func StringFormatGtime(dateStr string) int64 + func StringSliceContant(slice []string, value string) bool + func StringToBool(input string) bool + func StringToFloat64(input string) float64 + func StringToInt(input string) int + func StringToInt32(input string) int32 + func StringToInt64(input string) int64 + func StringToUint32(input string) uint32 + func StringToUint64(input string) uint64 + func TimeFormatString(duration uint64) string + func Uint32SliceContant(slice []uint32, value uint32) bool + func Uint32ToString(input uint32) string + func Uint64SliceContant(slice []uint64, value uint64) bool + func Uint64ToString(input uint64) string + type ChartCoordinate struct + End PointCoordinate + Start PointCoordinate + type PointCoordinate struct + X float64 + Y float64