Documentation ¶
Index ¶
- Constants
- func BytesToInt(b []byte) int
- func ContainsErr(errors ...error) bool
- func HttpGet(url string) ([]byte, error)
- func HttpPost(url string, body []byte) ([]byte, error)
- func IntToBytes(n int) []byte
- func Krand(size int, kind int) string
- func MoreThanHalf(n int) int
- func PendingLeft(data []byte, length int, char byte) []byte
- func RandomLower(size int) string
- func RandomNumber(size int) string
- func RandomString(size int) string
- func RandomUpper(size int) string
- func Str2Int64(str string, accuracy int) int64
- func StringJoint(strs ...string) string
Constants ¶
View Source
const ( KC_RAND_KIND_NUM = 0 // 纯数字 KC_RAND_KIND_LOWER = 1 // 小写字母 KC_RAND_KIND_UPPER = 2 // 大写字母 KC_RAND_KIND_ALL = 3 // 数字、大小写字母 )
Variables ¶
This section is empty.
Functions ¶
func BytesToInt ¶
func ContainsErr ¶
func IntToBytes ¶
func MoreThanHalf ¶
func RandomLower ¶
func RandomNumber ¶
func RandomString ¶
func RandomUpper ¶
func StringJoint ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.