utils

package
v0.0.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyFile added in v0.0.5

func CopyFile(src, dst string) (int64, error)

func FilePathExists

func FilePathExists(path string) bool

func GetFileModifyTime added in v0.0.4

func GetFileModifyTime(fileName string) int64

func GetFileSize added in v0.0.5

func GetFileSize(fileName string) int64

func GetFloat32Param

func GetFloat32Param(param map[string]string, key string, defaultVal float32) float32

func GetFloat64Param

func GetFloat64Param(param map[string]string, key string, defaultVal float64) float64

func GetInt32Param

func GetInt32Param(param map[string]string, key string, defaultVal int32) int32

func GetInt64Param

func GetInt64Param(param map[string]string, key string, defaultVal int64) int64

func GetInt8Param

func GetInt8Param(param map[string]string, key string, defaultVal int8) int8

func GetIntParam

func GetIntParam(param map[string]string, key string, defaultVal int) int

func GetMD5 added in v0.0.7

func GetMD5(filepath string) string

func GetStringParam added in v0.0.6

func GetStringParam(param map[string]string, key string, defaultVal string) string

func GetUInt32Param

func GetUInt32Param(param map[string]string, key string, defaultVal uint32) uint32

func GetUInt64Param

func GetUInt64Param(param map[string]string, key string, defaultVal uint64) uint64

func Int2String

func Int2String(v int) string

func ListDir added in v0.0.5

func ListDir(dir string) ([]string, error)

func String2Float32

func String2Float32(s string) float32

func String2Float64

func String2Float64(s string) float64

func String2Int

func String2Int(s string) int

func String2Int32

func String2Int32(s string) int32

func String2Int32List

func String2Int32List(s string, split string) []int32

func String2Int64

func String2Int64(s string) int64

func String2Int64List

func String2Int64List(s string, split string) []int64

func String2Int8

func String2Int8(s string) int8

func String2IntList

func String2IntList(s string, split string) []int

func String2UInt

func String2UInt(s string) uint

func String2UInt32

func String2UInt32(s string) uint32

func String2UInt32List

func String2UInt32List(s string, split string) []uint32

func String2UInt64

func String2UInt64(s string) uint64

func String2UInt64List

func String2UInt64List(s string, split string) []uint64

func StringSplit

func StringSplit(s string, sep string) []string

func UInt322String

func UInt322String(v uint32) string

func UInt642String

func UInt642String(v uint64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL