Documentation ¶
Index ¶
- Constants
- func BD09toGCJ02(lon, lat float64) (float64, float64)
- func BD09toWGS84(lon, lat float64) (float64, float64)
- func CalRedPacket(total int32, num int32) ([]int32, error)
- func DeltaCompareFloat32(expected float32, actual float32, delta float32) bool
- func DeltaCompareFloat64(expected float64, actual float64, delta float64) bool
- func FormatInt(v int) string
- func FormatInt16(v int16) string
- func FormatInt16ToSlice(v int16) []byte
- func FormatInt32(v int32) string
- func FormatInt32ToSlice(v int32) []byte
- func FormatInt64(v int64) string
- func FormatInt64ToSlice(v int64) []byte
- func FormatInt8(v int8) string
- func FormatInt8ToSlice(v int8) []byte
- func FormatIntToSlice(v int) []byte
- func FormatUint(v uint) string
- func FormatUint16(v uint16) string
- func FormatUint16ToSlice(v uint16) []byte
- func FormatUint32(v uint32) string
- func FormatUint32ToSlice(v uint32) []byte
- func FormatUint64(v uint64) string
- func FormatUint64ToSlice(v uint64) []byte
- func FormatUint8(v uint8) string
- func FormatUint8ToSlice(v uint8) []byte
- func FormatUintToSlice(v uint) []byte
- func GCJ02toBD09(lon, lat float64) (float64, float64)
- func GCJ02toWGS84(lon, lat float64) (float64, float64)
- func Gcd(x, y int64) int64
- func GetPrimes(max int) []int
- func IsDoubleStr(doubelstr string) (bool, error)
- func IsPowerOf2(x int) bool
- func Lcm(x, y int64) int64
- func MaxInt(a int, b int) int
- func MaxInt16(a int16, b int16) int16
- func MaxInt32(a int32, b int32) int32
- func MaxInt64(a int64, b int64) int64
- func MaxInt8(a int8, b int8) int8
- func MaxUint(a uint, b uint) uint
- func MaxUint16(a uint16, b uint16) uint16
- func MaxUint32(a uint32, b uint32) uint32
- func MaxUint64(a uint64, b uint64) uint64
- func MaxUint8(a uint8, b uint8) uint8
- func MinInt(a int, b int) int
- func MinInt16(a int16, b int16) int16
- func MinInt32(a int32, b int32) int32
- func MinInt64(a int64, b int64) int64
- func MinInt8(a int8, b int8) int8
- func MinUint(a uint, b uint) uint
- func MinUint16(a uint16, b uint16) uint16
- func MinUint32(a uint32, b uint32) uint32
- func MinUint64(a uint64, b uint64) uint64
- func MinUint8(a uint8, b uint8) uint8
- func ParseInt(s string) (int, error)
- func ParseInt16(s string) (int16, error)
- func ParseInt32(s string) (int32, error)
- func ParseInt64(s string) (int64, error)
- func ParseInt8(s string) (int8, error)
- func ParseUint(s string) (uint, error)
- func ParseUint16(s string) (uint16, error)
- func ParseUint32(s string) (uint32, error)
- func ParseUint64(s string) (uint64, error)
- func ParseUint8(s string) (uint8, error)
- func PowInt(x int, y int) int
- func RandInt(min, max int) int
- func RandInt64(min, max int64) int64
- func WGS84toBD09(lon, lat float64) (float64, float64)
- func WGS84toGCJ02(lon, lat float64) (float64, float64)
- type FAL
Constants ¶
View Source
const ( X_PI = math.Pi * 3000.0 / 180.0 OFFSET = 0.00669342162296594323 AXIS = 6378245.0 )
Variables ¶
This section is empty.
Functions ¶
func BD09toGCJ02 ¶ added in v0.0.8
BD09toGCJ02 百度坐标系->火星坐标系
func BD09toWGS84 ¶ added in v0.0.8
BD09toWGS84 百度坐标系->WGS84坐标系
func CalRedPacket ¶
CalRedPacket provides tencent red packet algorithm MOD: 2016-06-01 23:03
func DeltaCompareFloat32 ¶ added in v0.0.5
func DeltaCompareFloat64 ¶ added in v0.0.5
func FormatInt16 ¶ added in v0.0.8
func FormatInt16ToSlice ¶ added in v0.0.8
func FormatInt32 ¶ added in v0.0.8
func FormatInt32ToSlice ¶ added in v0.0.8
func FormatInt64 ¶ added in v0.0.8
func FormatInt64ToSlice ¶ added in v0.0.8
func FormatInt8 ¶ added in v0.0.8
func FormatInt8ToSlice ¶ added in v0.0.8
func FormatIntToSlice ¶ added in v0.0.8
func FormatUint ¶ added in v0.0.8
func FormatUint16 ¶ added in v0.0.8
func FormatUint16ToSlice ¶ added in v0.0.8
func FormatUint32 ¶ added in v0.0.8
func FormatUint32ToSlice ¶ added in v0.0.8
func FormatUint64 ¶ added in v0.0.8
func FormatUint64ToSlice ¶ added in v0.0.8
func FormatUint8 ¶ added in v0.0.8
func FormatUint8ToSlice ¶ added in v0.0.8
func FormatUintToSlice ¶ added in v0.0.8
func GCJ02toBD09 ¶ added in v0.0.8
GCJ02toBD09 火星坐标系->百度坐标系
func GCJ02toWGS84 ¶ added in v0.0.8
GCJ02toWGS84 火星坐标系->WGS84坐标系
func GetPrimes ¶ added in v0.0.6
GetPrimes 用于获取小于或等于参数max的所有质数。 本函数使用的是爱拉托逊斯筛选法(Sieve Of Eratosthenes)。
func IsDoubleStr ¶ added in v0.0.7
IsDoubleStr 验证是否是浮点字符串
func IsPowerOf2 ¶
func ParseInt16 ¶ added in v0.0.8
func ParseInt32 ¶ added in v0.0.8
func ParseInt64 ¶ added in v0.0.8
func ParseUint16 ¶ added in v0.0.8
func ParseUint32 ¶ added in v0.0.8
func ParseUint64 ¶ added in v0.0.8
func ParseUint8 ¶ added in v0.0.8
func RandInt64 ¶ added in v0.1.1
Rand returns a pseudo-random integer between min and max based on unix-nano time seed !! for random numbers suitable for security-sensitive work, use the crypto/rand package instead
func WGS84toBD09 ¶ added in v0.0.8
WGS84toBD09 WGS84坐标系->百度坐标系
func WGS84toGCJ02 ¶ added in v0.0.8
WGS84toGCJ02 WGS84坐标系->火星坐标系
Types ¶
Click to show internal directories.
Click to hide internal directories.