Documentation ¶
Index ¶
- Constants
- func CheckAndExit(err error)
- func CheckErr(err error) bool
- func DBExist() bool
- func DBPath() string
- func GenFixedLengthChineseChars(length int) string
- func GenRandomLengthChineseChars(start, end int) string
- func InitConfigDir()
- func InitDB()
- func RandInt(min, max int) int
- func RandInt64(min, max int64) int64
- func RandStr(len int) string
- func ReverseString(s string) string
Constants ¶
View Source
const ( FirstNameSQL = "SELECT firstName FROM firstName WHERE id = ?" FirstNameSum = 786029 )
Variables ¶
This section is empty.
Functions ¶
func CheckAndExit ¶ added in v0.0.3
func CheckAndExit(err error)
func GenFixedLengthChineseChars ¶
指定长度随机中文字符(包含复杂字符)
func GenRandomLengthChineseChars ¶
指定范围随机中文字符
func InitConfigDir ¶ added in v0.0.3
func InitConfigDir()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.