Documentation ¶
Index ¶
- func EnvToBool(name string, value bool) bool
- func EnvToInt(name string, value int) int
- func EnvToString(name string, value string) string
- func InArrayFloat64(data float64, array []float64) bool
- func InArrayInt(data int, array []int) bool
- func InArrayString(data string, array []string) bool
- func IsBool(s string) bool
- func IsExistsPath(path string) bool
- func IsInt(s string) bool
- func IsNumber(s string) bool
- func RandomInt(min, max int) int
- func RandomStr(length int, randomType RandomType.Value) string
- func ToBool(s string) bool
- func ToFloat32(s string) float32
- func ToFloat64(s string) float64
- func ToInt(s string) int
- func ToInt32(s string) int32
- func ToInt64(s string) int64
- func ToInt8(s string) int8
- func ToString(num interface{}) string
- func ToUint(s string) uint
- func ToUint32(s string) uint32
- func ToUint64(s string) uint64
- func ToUint8(s string) uint8
- func Ucfirst(s string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvToString ¶ added in v0.0.9
func InArrayFloat64 ¶ added in v0.0.3
InArrayFloat64 判断是否在数组中,float64
func InArrayInt ¶ added in v0.0.3
InArrayInt 判断是否在数组中,int
func InArrayString ¶ added in v0.0.3
InArrayString 判断是否在数组中,string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.