Documentation ¶
Index ¶
- func AesDecrypt(cryptedBase64 string, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []byte) (string, error)
- func Bytes2str(b []byte) string
- func FormatFloat(value float64, decimal int) string
- func Interface2Int64(inter interface{}) int64
- func Interface2String(value interface{}) string
- func PKCS5Padding(plaintext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func PickDomainFromUrl(s string) (string, error)
- func ReverseIntSlice(s []int64) []int64
- func SecondsToInt64(costTime float64) (int64, int64)
- func StrAppend(str1 string, str2 ...string) string
- func SubStr(s string, length int) string
- func ToJson(val interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesEncrypt ¶
func Interface2Int64 ¶
func Interface2Int64(inter interface{}) int64
func Interface2String ¶
func Interface2String(value interface{}) string
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PickDomainFromUrl ¶
func ReverseIntSlice ¶
func SecondsToInt64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.