Documentation ¶
Index ¶
- func AES_CBC_Base64_Decrypt(data string, keysize int, key, iv []byte) ([]byte, error)
- func AES_CBC_Base64_Encrypt(data []byte, keysize int, key, iv []byte) (string, error)
- func AES_CBC_Decrypt(data []byte, keysize int, key, iv []byte) (ret []byte, err error)
- func AES_CBC_Encrypt(data []byte, keysize int, key, iv []byte) (ret []byte, err error)
- func AnsiToUtf8(src string) string
- func AppFileName() string
- func AppFilePath() string
- func AppendBytes2File(filename string, content []byte) error
- func AppendStr2File(filename string, content string) error
- func Base64Decode(v string) []byte
- func Base64Encode(v []byte) string
- func Bytes2Hex(v []byte) string
- func Bytes2String(v []byte) string
- func BytesMerge(v ...[]byte) []byte
- func BytesMergeA(v ...*[]byte) *[]byte
- func CharInSet(v byte, s ...interface{}) bool
- func CombineCount(m, n int) (ret int)
- func CombineSplit2Index(m, n int) (retv [][]int)
- func ConvertCharacterSet(srcData, srcCharacterSet, dstCharacterSet string) string
- func CurrDate2Str() string
- func CurrDateTime2Str_Micro() string
- func CurrDateTime2Str_Mill() string
- func CurrDateTime2Str_Sec() string
- func CurrTime2Str_Micro() string
- func CurrTime2Str_Mill() string
- func CurrTime2Str_Sec() string
- func CurrUnixNanoTime() int64
- func CurrUnixTime() int64
- func DateSame(tm1, tm2 time.Time) bool
- func DateTime2Str_Micro(t time.Time) string
- func DateTime2Str_Mill(t time.Time) string
- func DateTime2Str_Sec(t time.Time) string
- func DirExist(v string) bool
- func ExtractFileDir(filename string) (ret string)
- func ExtractFileExt(filename string) (ret string)
- func ExtractFileName(filename string) (ret string)
- func ExtractFilePath(filename string) (ret string)
- func FileExist(v string) bool
- func FileRename(srcname, dstname string) error
- func Float32Abs(v float32) float32
- func Float64Abs(v float64) float64
- func Float64ToStr(v float64) string
- func ForceDirectories(v string) bool
- func GbkToUtf8(v string) string
- func GetFileContent(filename string) ([]byte, error)
- func GetFileContent2Str(filename string) (string, error)
- func GetFileSize(filename string) int64
- func HMACSHA1(data, key []byte) []byte
- func Hex2Bytes(v string) []byte
- func HttpDataSizeGet(geturl string, headers map[string]string, params map[string]string) uint64
- func HttpGet(geturl string, headers map[string]string, params map[string]string) []byte
- func HttpGetA(geturl string, headers map[string]string, params map[string]string, ...) ([]byte, error)
- func HttpGetWithProxy(geturl, proxyUrl string, headers map[string]string, params map[string]string) ([]byte, error)
- func HttpPost(posturl string, headers map[string]string, params map[string]string) []byte
- func HttpPostA(posturl string, headers map[string]string, params map[string]string, ...) ([]byte, error)
- func HttpPostWithProxy(posturl, proxyUrl string, headers map[string]string, params map[string]string) ([]byte, error)
- func HttpTransport(proxyUrl string, timeoutSec, keepAliveSec int) (*http.Transport, error)
- func Int32Abs(v int32) int32
- func Int64Abs(v int64) int64
- func Int64ToStr(v int64) string
- func IntAbs(v int) int
- func IntInSet(v int, s ...interface{}) bool
- func Md5Bytes(v []byte) string
- func Md5String(v string) string
- func MoveFile(srcname, dstname string) error
- func PKCS5Padding(ciphertext []byte) []byte
- func PKCS5UnPadding(data []byte) []byte
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(data []byte) []byte
- func ParseStrDate(str string) (time.Time, error)
- func ParseStrDateInLocation(str string, location *time.Location) (time.Time, error)
- func ParseStrDateTime(str string) (time.Time, error)
- func ParseStrDateTimeInLocation(str string, location *time.Location) (time.Time, error)
- func ParseStrTime(str string) (time.Time, error)
- func ParseStrTimeInLocation(str string, location *time.Location) (time.Time, error)
- func RemoveFile(filename string) error
- func SHA1String(v []byte) string
- func SearchFiles(dirPath string, suffixs []string, containSubDir bool) (filenames []string, err error)
- func Str2Date(v string) time.Time
- func Str2DateTime(v string) time.Time
- func Str2LocalDate(v string) time.Time
- func Str2LocalDateTime(v string) time.Time
- func Str2LocalTime(v string) time.Time
- func Str2Time(v string) time.Time
- func Str2UtcDate(v string) time.Time
- func Str2UtcDateTime(v string) time.Time
- func Str2UtcTime(v string) time.Time
- func StrToDate(v string, location *time.Location) time.Time
- func StrToDateTime(v string, location *time.Location) time.Time
- func StrToFloat32(v string) float32
- func StrToFloat32Def(v string, d float32) float32
- func StrToFloat64(v string) float64
- func StrToFloat64Def(v string, d float64) float64
- func StrToInt(v string) int
- func StrToInt32(v string) int32
- func StrToInt32Def(v string, d int32) int32
- func StrToInt64(v string) int64
- func StrToInt64Def(v string, d int64) int64
- func StrToIntDef(v string, d int) int
- func StrToTime(v string, location *time.Location) time.Time
- func StrToUInt64(v string) uint64
- func StrToUInt64Def(v string, d uint64) uint64
- func StringTrim(v string) (ret string)
- func UInt64ToStr(v uint64) string
- func UnGZIP(v []byte) (ret []byte)
- func UnGZip(v []byte) (r []byte, e error)
- func UnGZipA(ior io.Reader) (r []byte, e error)
- func Utf8ToAnsi(src string) string
- func Utf8ToGbk(v string) string
- func WriteBytes2File(filename string, content []byte) error
- func WriteStr2File(filename string, content string) error
- func XorEncrypt(src []byte, key []byte) []byte
- func YestodayDate2Str() string
- func ZBase64Compress(v []byte) string
- func ZBase64Decompress(v string) []byte
- func ZBase64DecompressA(v string) (r []byte, e error)
- func ZlibCompress(v []byte) []byte
- func ZlibDecompress(v []byte) []byte
- func ZlibDecompressA(v []byte) (retr []byte, rete error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AES_CBC_Base64_Decrypt ¶
func AES_CBC_Base64_Encrypt ¶
func AES_CBC_Decrypt ¶
aes cbc算法模式 解密
func AES_CBC_Encrypt ¶
aes cbc算法模式 加密
func AnsiToUtf8 ¶
func AppFileName ¶
func AppFileName() string
func AppendBytes2File ¶
func AppendStr2File ¶
func Base64Decode ¶
func Base64Encode ¶
func BytesMerge ¶
func BytesMergeA ¶
func CombineSplit2Index ¶
func ConvertCharacterSet ¶
func CurrUnixNanoTime ¶
func CurrUnixNanoTime() int64
func CurrUnixTime ¶
func CurrUnixTime() int64
func DateTime2Str_Micro ¶
func DateTime2Str_Mill ¶
func DateTime2Str_Sec ¶
func ExtractFileDir ¶
func ExtractFileExt ¶
func ExtractFileName ¶
func ExtractFilePath ¶
func FileRename ¶
func Float32Abs ¶
func Float64Abs ¶
func Float64ToStr ¶
func GetFileContent2Str ¶
func HttpDataSizeGet ¶
func HttpGetWithProxy ¶
func HttpPostWithProxy ¶
func HttpTransport ¶
func Int64ToStr ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
func ParseStrDateInLocation ¶
func ParseStrTimeInLocation ¶
func RemoveFile ¶
func SHA1String ¶
func SearchFiles ¶
func SearchFiles(dirPath string, suffixs []string, containSubDir bool) (filenames []string, err error)
根据参数获取目录下的文件名
func Str2DateTime ¶
func Str2LocalDate ¶
func Str2LocalDateTime ¶
func Str2LocalTime ¶
func Str2UtcDate ¶
func Str2UtcDateTime ¶
func Str2UtcTime ¶
func StrToFloat32 ¶
func StrToFloat32Def ¶
func StrToFloat64 ¶
func StrToFloat64Def ¶
func StrToInt32 ¶
func StrToInt32Def ¶
func StrToInt64 ¶
func StrToInt64Def ¶
func StrToIntDef ¶
func StrToUInt64 ¶
func StrToUInt64Def ¶
func StringTrim ¶
func UInt64ToStr ¶
func Utf8ToAnsi ¶
func WriteBytes2File ¶
func WriteStr2File ¶
func XorEncrypt ¶
func ZBase64DecompressA ¶
func ZlibCompress ¶
func ZlibDecompress ¶
func ZlibDecompressA ¶
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
This package is a character-set conversion library for Go.
|
This package is a character-set conversion library for Go. |
Click to show internal directories.
Click to hide internal directories.