Documentation
¶
Index ¶
- func AesCBCDecrypt(crypted, key []byte) ([]byte, error)
- func AesCBCEncrypt(origData, key []byte) ([]byte, error)
- func ArrayRemoveDuplication(arr []string) []string
- func ArrayRemoveIntDuplication(arr []int) []int
- func ArrayRemoveUintDuplication(arr []uint) []uint
- func ArrayUnique(arr []string) (ret []string)
- func Base(pathStr string) string
- func Camel2Case(name string) (ret string)
- func Case2Camel(name string) string
- func Difference(slice1, slice2 []string) []string
- func DifferenceUint(slice1, slice2 []uint) []uint
- func EncryptHmacMd5(key, data string) string
- func GetEnvVar(name, def string) (ret string)
- func GetIp() (ip net.IP, mac net.HardwareAddr)
- func GetOs() string
- func GetSign(appKey, appSecret, nonce, timestamp, body string) (sign string)
- func GetUserHome() string
- func GetValidPort(start int, end int, existPortMap *map[int]bool) (ret int)
- func InArray(target string, array []string) bool
- func InSlice(target string, strArray []string) bool
- func IntInSlice(target int, intArray []int) bool
- func IntToStrArr(intArr []int) (strArr []string)
- func Intersect(slice1, slice2 []string) []string
- func IntersectUint(slice1, slice2 []uint) []uint
- func IsDisable(enable string) bool
- func IsLinux() bool
- func IsMac() bool
- func IsPortInUse(port int) bool
- func IsRelease() bool
- func IsWin() bool
- func JsonDecode(str string, res interface{}) (err error)
- func JsonEncode(data interface{}) (res string)
- func LinkedMapToMap(mp maps.Map) map[string]string
- func Map2Struct(m interface{}, s interface{})
- func NewSliceValue(vals []string, p *[]string) *sliceValue
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(origData []byte) []byte
- func RandStr(n int) string
- func RemoveBlankLine(str string) string
- func Sha256(src string) string
- func UintArrToStr(arr []uint) (res string)
- func UintToStrArr(intArr []uint) (strArr []string)
- func UpdateUrl(url string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AesCBCDecrypt ¶
func AesCBCEncrypt ¶
func ArrayRemoveDuplication ¶
func ArrayUnique ¶
func EncryptHmacMd5 ¶
func GetUserHome ¶
func GetUserHome() string
func IntToStrArr ¶
func IsPortInUse ¶
func JsonDecode ¶
func JsonEncode ¶
func JsonEncode(data interface{}) (res string)
func Map2Struct ¶
func Map2Struct(m interface{}, s interface{})
func NewSliceValue ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func RemoveBlankLine ¶
func UintArrToStr ¶
func UintToStrArr ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.