Documentation ¶
Index ¶
- Constants
- func AvgInt(args ...int) float64
- func AvgInt64(args ...int64) float64
- func AvgUInt(args ...uint) float64
- func AvgUInt64(args ...uint64) float64
- func FormatInt(i int) string
- func FormatInt64(i int64) string
- func MaxInt(args ...int) int
- func MaxInt64(args ...int64) int64
- func MaxUInt(args ...uint32) uint32
- func MinInt(args ...int) int
- func MinInt64(args ...int64) int64
- func MinUInt(args ...uint) uint
- func MinUInt64(args ...uint64) uint64
- func ParseSafeFloat(s string) float64
- func ParseSafeInt(s string) int
- func ParseSafeInt64(s string) int64
- func ParseSize(expr string) (int64, error)
- func RandomBetween(min, max int) int
- func RandomString(length int, option RandomStringOp) string
- func ReplaceArray(input string, needles []string, replace []string) string
- func SumInt(args ...int) int
- func SumInt64(args ...int64) int64
- func SumUInt(args ...uint) uint
- func SumUInt64(args ...uint64) uint64
- type RandomStringOp
- type String
- func (s String) Contains(match string) bool
- func (s String) ContainsRegex(match string) bool
- func (s String) EndsWith(match string) bool
- func (s String) Fields() []string
- func (s String) Replace(find, replace string) String
- func (s String) Split(splitter string) []string
- func (s String) SplitBy(splitter ...string) []string
- func (s String) StartsWith(match string) bool
- func (s String) String() string
- func (s String) Title() String
- func (s String) Trim(args ...string) String
- func (s String) TrimLeft(args ...string) String
- func (s String) TrimRight(args ...string) String
- func (s String) Truncate(length int, more string) String
- func (s String) TruncateWord(length int, more string) String
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func FormatInt64 ¶
func ParseSafeFloat ¶
func ParseSafeInt ¶
func ParseSafeInt64 ¶
func RandomBetween ¶
RandomBetween Create random number between two ranges
func RandomString ¶
func RandomString(length int, option RandomStringOp) string
Types ¶
type RandomStringOp ¶
type RandomStringOp int
const ( LOWER_CASE RandomStringOp = 1 UPPER_CASE RandomStringOp = 2 RANDOM_CASE RandomStringOp = 3 ALPHANUM RandomStringOp = 4 NUMBERS RandomStringOp = 5 ALPHANUM_SIGNS RandomStringOp = 6 )
Click to show internal directories.
Click to hide internal directories.