util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 CheckErr added in v0.0.3

func CheckErr(err error) bool

func DBExist added in v0.0.3

func DBExist() bool

func DBPath added in v0.0.3

func DBPath() string

func GenFixedLengthChineseChars

func GenFixedLengthChineseChars(length int) string

指定长度随机中文字符(包含复杂字符)

func GenRandomLengthChineseChars

func GenRandomLengthChineseChars(start, end int) string

指定范围随机中文字符

func InitConfigDir added in v0.0.3

func InitConfigDir()

func InitDB added in v0.0.3

func InitDB()

func RandInt

func RandInt(min, max int) int

指定范围随机 int

func RandInt64

func RandInt64(min, max int64) int64

指定范围随机 int64

func RandStr

func RandStr(len int) string

随机英文小写字母

func ReverseString added in v0.0.3

func ReverseString(s string) string

反转字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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