Documentation ¶
Index ¶
- Constants
- func Abs(n int64) int64
- func BuildHMAC(key, data string, hf hashFunc) []byte
- func BuildHMAC1(key, data string) []byte
- func BuildHMAC256(key, data string) []byte
- func BuildMD5(parts ...string) string
- func Bytes2Str(b []byte) string
- func Choose(weights []uint32) (index int, ok bool)
- func EncodeToBase64(data []byte) string
- func GetFuncName(f interface{}) string
- func GetUUID() (string, error)
- func InternBytes(b []byte) string
- func InternString(s string) string
- func IsEmptyStr(s string) bool
- func Microsecond() int64
- func Millisecond() int64
- func Nanosecond() int64
- func Second() int64
- func Str2Bytes(s string) []byte
- func Stringify(obj interface{}) string
Constants ¶
View Source
const ( StrEmpty = "" StrColon = ":" StrLine = "\n" StrAnd = "&" StrQuestion = "?" StrEqual = "=" StrSpace = " " StrSlash = "\\" StrBackslash = "/" StrHyphen = "-" StrTilde = "~" StrDot = "." StrComma = "," StrSemicolon = ";" )
View Source
const ( DateGMT = "Mon, 02 Jan 2006 15:04:05 GMT" DateLunar = "2006-01-02 15:04:05" DateTZ = "2006-01-02T15:04:05Z" DateLunarNano = "2006-01-02 15:04:05.000000000" )
Variables ¶
This section is empty.
Functions ¶
func Abs ¶
Abs completes abs for int64. Please see https://wuyin.io/2018/02/07/optimized-abs-func-for-int64-in-Go/.
func BuildHMAC1 ¶
func BuildHMAC256 ¶
func EncodeToBase64 ¶
func GetFuncName ¶
func GetFuncName(f interface{}) string
func InternBytes ¶
func InternString ¶
func IsEmptyStr ¶
func Microsecond ¶
func Microsecond() int64
func Millisecond ¶
func Millisecond() int64
func Nanosecond ¶
func Nanosecond() int64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.