Documentation ¶
Index ¶
- func BoolsToStrs(items []bool) []string
- func CheckStrLen(str string, minLen, maxLen int) bool
- func CheckVaildAbbr(abbr string, size int) bool
- func CheckVaildName(name string, minLen, maxLen int) bool
- func CheckVaildName1(name string, minLen, maxLen int) bool
- func Clamp(x, lo, hi float64) float64
- func ClampInt(x, lo, hi int) int
- func Degrees(radians float64) float64
- func DurationString(d time.Duration) string
- func FirstIsLower(s string) bool
- func FirstIsUpper(s string) bool
- func FirstToLower(s string) string
- func FirstToUpper(s string) string
- func Float32sToStrs(items []float32) []string
- func Float64sToStrs(items []float64) []string
- func Fract(x float64) float64
- func Int16sToStrs(items []int16) []string
- func Int32sToStrs(items []int32) []string
- func Int64sToStrs(items []int64) []string
- func Int8sToStrs(items []int8) []string
- func IntsToStrs(items []int) []string
- func M2bool(i interface{}) bool
- func M2float32(i interface{}) float32
- func M2float64(i interface{}) float64
- func M2int16(i interface{}) int16
- func M2int32(i interface{}) int32
- func M2int64(i interface{}) int64
- func M2int8(i interface{}) int8
- func M2string(i interface{}) string
- func M2uint16(i interface{}) uint16
- func M2uint32(i interface{}) uint32
- func M2uint64(i interface{}) uint64
- func M2uint8(i interface{}) uint8
- func Median(items []float64) float64
- func ParseBools(items []string) ([]bool, error)
- func ParseFloat32s(items []string) ([]float32, error)
- func ParseFloat64s(items []string) ([]float64, error)
- func ParseInt16s(items []string) ([]int16, error)
- func ParseInt32s(items []string) ([]int32, error)
- func ParseInt64s(items []string) ([]int64, error)
- func ParseInt8s(items []string) ([]int8, error)
- func ParseInts(items []string) ([]int, error)
- func ParseUint64s(items []string) ([]uint64, error)
- func Radians(degrees float64) float64
- func RandStr(n int) string
- func ShowProgress(start time.Time, rays uint64, crtValue, totalValue int)
- func Slice(s string) (b []byte)
- func StoBol(v string, def ...bool) bool
- func Stof32(v string, def ...float32) float32
- func Stof64(v string, def ...float64) float64
- func Stoi(v string, def ...int) int
- func Stoi16(v string, def ...int16) int16
- func Stoi32(v string, def ...int32) int32
- func Stoi64(v string, def ...int64) int64
- func Stoi8(v string, def ...int8) int8
- func Stou(v string, def ...uint) uint
- func Stou16(v string, def ...uint16) uint16
- func Stou32(v string, def ...uint32) uint32
- func Stou64(v string, def ...uint64) uint64
- func Stou8(v string, def ...uint8) uint8
- func String(b []byte) (s string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolsToStrs ¶
func CheckStrLen ¶
func CheckVaildAbbr ¶
func CheckVaildName ¶
func DurationString ¶
func FirstIsLower ¶
func FirstIsUpper ¶
func FirstToLower ¶
func FirstToUpper ¶
func Float32sToStrs ¶
func Float64sToStrs ¶
func Int16sToStrs ¶
func Int32sToStrs ¶
func Int64sToStrs ¶
func Int8sToStrs ¶
func IntsToStrs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.