Documentation ¶
Index ¶
- func Bool(in string) bool
- func Has(in interface{}, key string) bool
- func Join(in interface{}, sep string) string
- func MustAtoi(s string) int
- func MustParseFloat(s string, bitSize int) float64
- func MustParseInt(s string, base, bitSize int) int64
- func MustParseUint(s string, base, bitSize int) uint64
- func Slice(args ...interface{}) []interface{}
- func ToFloat64(v interface{}) float64
- func ToFloat64s(in ...interface{}) []float64
- func ToInt(in interface{}) int
- func ToInt64(v interface{}) int64
- func ToInt64s(in ...interface{}) []int64
- func ToInts(in ...interface{}) []int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool converts a string to a boolean value, using strconv.ParseBool under the covers. Possible true values are: 1, t, T, TRUE, true, True All other values are considered false.
func Join ¶
Join concatenates the elements of a to create a single string. The separator string sep is placed between elements in the resulting string.
This is functionally identical to strings.Join, except that each element is coerced to a string first
func MustParseFloat ¶
MustParseFloat - wrapper for strconv.ParseFloat that returns 0 in the case of error
func MustParseInt ¶
MustParseInt - wrapper for strconv.ParseInt that returns 0 in the case of error
func MustParseUint ¶
MustParseUint - wrapper for strconv.ParseUint that returns 0 in the case of error
func Slice ¶
func Slice(args ...interface{}) []interface{}
Slice creates a slice from a bunch of arguments
Types ¶
This section is empty.