Documentation ¶
Index ¶
- Constants
- Variables
- func Add(a, b float64) float64
- func Base64StrDecode(in string) ([]byte, error)
- func Base64StrEncode(in string) string
- func Base64UrlSaveDecode(in string) ([]byte, error)
- func Base64UrlSaveEncode(in string) string
- func CmdAcceptor(fm map[string]func())
- func DelSliceInt(list []int, i int) []int
- func DelSliceInt32(list []int32, i int32) []int32
- func DelSliceInt64(list []int64, i int64) []int64
- func Div(a, b float64) float64
- func GetHTTPRequest(req []byte) (httpReq *http.Request, err error)
- func GetLocalIP() string
- func GetPoker() []int32
- func GetPokerWithJoker() []int32
- func GoroutineID() string
- func IF(assert bool, a, b interface{}) interface{}
- func IsMemberFloat64(element float64, list []float64) bool
- func IsMemberInt(element int, list []int) bool
- func IsMemberInt32(element int32, list []int32) bool
- func IsMemberInt64(element int64, list []int64) bool
- func MaxInt(i ...int) int
- func MaxInt32(i ...int32) int32
- func MaxInt64(i ...int64) int64
- func Md5Byte(in []byte) []byte
- func Md5Str(in ...interface{}) string
- func Md5String(in string) string
- func MemStat() uint64
- func MinInt(i ...int) int
- func MinInt32(i ...int32) int32
- func MinInt64(i ...int64) int64
- func Mul(a, b float64) float64
- func NewRawHTTPResponse(status int, contentType string, body []byte) []byte
- func NewRoomIdPool() *roomIdPool
- func Pack(data [][]byte) []byte
- func PackOne(data []byte) []byte
- func RandTake(n int, src []int32, r *rand.Rand) (val, left []int32)
- func ReversePokers(l [][]int32)
- func Sha1Byte(in []byte) []byte
- func Sha1String(in string) string
- func Sha256(in string) []byte
- func Stack(skip int) []byte
- func Str(v interface{}) string
- func Sub(a, b float64) float64
- func Take(src []int32, t ...int32) (left []int32, ok bool)
- func ToFloat64(in string) (float64, error)
- func UnixMs() int64
- type AES
Constants ¶
View Source
const ( KiB // 1024 MiB // 1048576 GiB // 1073741824 TiB // 1099511627776 (超过了int32的范围) PiB // 1125899906842624 EiB // 1152921504606846976 ZiB // 1180591620717411303424 (超过了int64的范围) YiB // 1208925819614629174706176 )
View Source
const (
HTTPStringFormat = "" /* 137-byte string literal not displayed */
)
Variables ¶
View Source
var DefaultIdPool = NewRoomIdPool()
Functions ¶
func Base64StrDecode ¶
func Base64StrEncode ¶
func Base64UrlSaveDecode ¶
func Base64UrlSaveEncode ¶
func CmdAcceptor ¶
func CmdAcceptor(fm map[string]func())
func GetLocalIP ¶
func GetLocalIP() string
func GetPokerWithJoker ¶
func GetPokerWithJoker() []int32
func IsMemberFloat64 ¶
func IsMemberInt ¶
func IsMemberInt32 ¶
func IsMemberInt64 ¶
func NewRawHTTPResponse ¶
func NewRoomIdPool ¶
func NewRoomIdPool() *roomIdPool
func ReversePokers ¶
func ReversePokers(l [][]int32)
func Sha1String ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.