Documentation ¶
Index ¶
- Variables
- func GB2312ToUTF8(data []byte) (utf8Data []byte, err error)
- func GetAbsPath() string
- func GetMD5String(data string) string
- func GetRangeNum(min, max int64) int64
- func GetUUID() string
- func HexToBigInt(hex string) *big.Int
- func MkdirAllFile(path, appPath string) string
- func ReverseString(s string) string
- func StringsJoin(str ...string) string
- func UTF8ToGB2312(data []byte) (gb2312Data []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var GpsCalcTransform = func(v int64) float64 { _du := int64(v / 3600 / 100) _fen := int64((v - _du*3600*100) / 100 / 60) _miao := int64((v - _du*3600*100 - _fen*60*100) / 100) _latlon := float64(_du) + float64(_fen)/60 + float64(_miao)/60/60 return _latlon }
海康GPS转换公式
Functions ¶
func GB2312ToUTF8 ¶
将GB2312类型的XML数据转码成UTF-8类型
func GetRangeNum ¶
func UTF8ToGB2312 ¶
将UTF-8类型的XML数据转码成GB2312类型
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.