Documentation
¶
Index ¶
- func CreatePath(dir string) error
- func ExePath() string
- func FuncName() string
- func GetAge(idCardNo string) int
- func IsFileOrDirectoryExist(path string) bool
- func MakeSureDBExist(username, passwd, host string, port int, dbname string) error
- func ProjectPath() string
- func RemoveDuplicatesAndEmpty(slc []string) []string
- func RemoveEmpty(a []string) (ret []string)
- func Reverse(s []byte) []byte
- func WriteUint16ToBuffer(b *bytes.Buffer, v uint16)
- func WriteUint32ToBuffer(b *bytes.Buffer, v uint32)
- func WriteUint64ToBuffer(b *bytes.Buffer, v uint64)
- type RotateLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFileOrDirectoryExist ¶
IsFileOrDirectoryExist 判断文件或者目录是否存在
func MakeSureDBExist ¶
MakeSureDBExist 确认一个Mysql数据库存在
func RemoveDuplicatesAndEmpty ¶
RemoveDuplicatesAndEmpty 剔除空数组和重复的数组
func WriteUint16ToBuffer ¶
WriteUint16ToBuffer 向bytes.Buffer中以小端序写入一个uint16
func WriteUint32ToBuffer ¶
WriteUint32ToBuffer 向bytes.Buffer中以小端序写入一个uint32
func WriteUint64ToBuffer ¶
WriteUint64ToBuffer 向bytes.Buffer中以小端序写入一个uint64
Types ¶
Click to show internal directories.
Click to hide internal directories.