Documentation ¶
Index ¶
- func CompareUnixTime(stime int64, dtime int64) int64
- func Decrypt(k string, c string) (string, error)
- func Encrypt(k string, p string) (string, error)
- func ExistPath(strPath string) bool
- func FileCopy_s(src string, dst string) (int64, error)
- func GenerateUuid() string
- func GetPath() string
- func I32ToString(i32 int32) string
- func I64ToString(i64 int64) string
- func I64UnixTimeTo(i64Time int64) (string, error)
- func Mkdir(strPath string) error
- func ReadFile(f string)
- func Remove(strPath string) bool
- func Rename(strFrom string, strTo string) bool
- func SFolder_r(fileList *[]string, path string, whiteList []string) error
- func Sha256(plainText string) string
- func StringToI32(str string) (int32, error)
- func StringToI64(str string) (int64, error)
- func StringToINT(str string) (int, error)
- func StringUnixTimeToString(strTime string) (string, error)
- func Throw(e Exception)
- type Block
- type Exception
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareUnixTime ¶
CompareUnixTime : dtime - stime : return second
func Encrypt ¶
Encrypt : AES256 key, base64 encode - plain text to cipher text See alternate IV creation from ciphertext below var iv = []byte{35, 46, 57, 24, 85, 35, 24, 74, 87, 35, 88, 98, 66, 32, 14, 05}
func FileCopy_s ¶
/////////////////////////////////////////////////////////////////////// FileCopy_s : file copy with temporary extension ///////////////////////////////////////////////////////////////////////
func I64UnixTimeTo ¶
I64UnixTimeTo : Unix Time To String
func SFolder_r ¶
/////////////////////////////////////////////////////////////////////// SFolder_r : get file list include sub-dir ///////////////////////////////////////////////////////////////////////
func StringToI32 ¶
func StringToINT ¶
func StringUnixTimeToString ¶
StringUnixTimeToString : string Unix Time To String