Documentation ¶
Index ¶
- func BoolToString(b bool) string
- func IDToSting(id int64) string
- func LinkID(a, b int64) string
- func LinkStr(a, b string) string
- func ParseLinkID(str string) (a, b int64)
- func RandomArea() string
- func RandomEmail() string
- func RandomFloat(min, max float64) float64
- func RandomInt(min, max int64) int64
- func RandomOwner() string
- func RandomPeriod() time.Time
- func RandomString(n int) string
- func RandomStringSlice(maxLength int, eleMaxLength int) []string
- func RandomTag() string
- func StringToBoolMust(s string) bool
- func StringToIDMust(id string) int64
- type StrTo
- func (s StrTo) Int() (int, error)
- func (s StrTo) Int32() (int32, error)
- func (s StrTo) Int64() (int64, error)
- func (s StrTo) MustInt() int
- func (s StrTo) MustInt32() int32
- func (s StrTo) MustInt64() int64
- func (s StrTo) MustUInt32() uint32
- func (s StrTo) String() string
- func (s StrTo) UInt32() (uint32, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolToString ¶
func ParseLinkID ¶
func RandomArea ¶
func RandomArea() string
func RandomEmail ¶
func RandomEmail() string
func RandomStringSlice ¶
RandomStringSlice 指定最大切片长度和切片中元素长度的随机字符串切片
func StringToBoolMust ¶
func StringToIDMust ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.