Documentation ¶
Index ¶
- func AllMac() (string, error)
- func CheckIsExist(addr string) bool
- func CleanSpace(str string) string
- func ClearDir(dir_path string) (string, error)
- func DataPage(all_num, page, number int64) (start_number, end_number int64, err error)
- func ErrorCustom(text string) error
- func Float64ToStr(x float64) string
- func GetFileSize(file_addr string) (string, int64)
- func GetRootPath() string
- func GetSize(obj int64) string
- func GetToken(length int, ismd5 bool) string
- func GetUUID(org_id, machine_type, regist_number string) (string, error)
- func Get_dir_name(dirPth string) ([]string, error)
- func Int64ToStr(x int64) string
- func IntToStr(x int) string
- func ParseJsonFile(filename string, v interface{}) error
- func Properties_Get_Value(file_path, key string) string
- func ReadAll(filePth string) ([]byte, error)
- func Readline(file_path string) ([]string, error)
- func ShExec(path, cmd string, args ...string) (string, error)
- func Splitstr(str string, start int, end int) string
- func StrContains(str, obj string) bool
- func StrCount(str, obj string) int
- func StrHasPrefix(str, prefix string) bool
- func StrHasSuffix(str, prefix string) bool
- func StrMD5(str string) string
- func StrSHA1(str string) string
- func StrSHA256(str string) string
- func StrSHA512(str string) string
- func StrToFloat64(x string) (float64, error)
- func StrToInt(x string) (int, error)
- func StrToInt64(x string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64ToStr ¶
func GetFileSize ¶
获取本地文件的大小,返回2个值,一个是带单位的字符串,一个是不带单位的字节
func Int64ToStr ¶
func ParseJsonFile ¶
解析JSON文件: json文件的数据结构 和 接口对象的数据结构 必须要一致!!!
func Properties_Get_Value ¶
获取properties文件中KEY的值
func StrToFloat64 ¶
func StrToInt64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.