Documentation ¶
Index ¶
- func ToBoolE(s string) (bool, error)
- func ToBoolOrDefault(s string, d bool) bool
- func ToBoolSliceE(s []string) ([]bool, error)
- func ToByteSliceE(s string) ([]byte, error)
- func ToByteSliceSliceE(s []string) ([][]byte, error)
- func ToDecimal(s string) decimal.Decimal
- func ToDecimalE(s string) (decimal.Decimal, error)
- func ToDecimalSlice(s []string) []decimal.Decimal
- func ToDecimalSliceE(s []string) ([]decimal.Decimal, error)
- func ToErrorE(s string) (error, error)
- func ToErrorSliceE(s []string) ([]error, error)
- func ToFloat32E(s string) (float32, error)
- func ToFloat32SliceE(s []string) ([]float32, error)
- func ToFloat64E(s string) (float64, error)
- func ToFloat64SliceE(s []string) ([]float64, error)
- func ToInt(s string) int
- func ToInt16E(s string) (int16, error)
- func ToInt16SliceE(s []string) ([]int16, error)
- func ToInt32E(s string) (int32, error)
- func ToInt32SliceE(s []string) ([]int32, error)
- func ToInt64E(s string) (int64, error)
- func ToInt64OrDefault(s string, d int64) int64
- func ToInt64SliceE(s []string) ([]int64, error)
- func ToInt8E(s string) (int8, error)
- func ToInt8SliceE(s []string) ([]int8, error)
- func ToIntE(s string) (int, error)
- func ToIntOrDefault(s string, d int) int
- func ToIntSliceE(s []string) ([]int, error)
- func ToInterfaceSliceE(s []string) ([]interface{}, error)
- func ToRuneSliceE(s string) ([]rune, error)
- func ToRuneSliceSliceE(s []string) ([][]rune, error)
- func ToUInt32OrDefault(s string, d uint32) uint32
- func ToUint16E(s string) (uint16, error)
- func ToUint16SliceE(s []string) ([]uint16, error)
- func ToUint32E(s string) (uint32, error)
- func ToUint32SliceE(s []string) ([]uint32, error)
- func ToUint64E(s string) (uint64, error)
- func ToUint64SliceE(s []string) ([]uint64, error)
- func ToUint8E(s string) (uint8, error)
- func ToUint8SliceE(s []string) ([]uint8, error)
- func ToUintE(s string) (uint, error)
- func ToUintSliceE(s []string) ([]uint, error)
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToBoolOrDefault ¶
func ToBoolSliceE ¶
func ToByteSliceE ¶
func ToByteSliceSliceE ¶
func ToDecimalSlice ¶
func ToErrorSliceE ¶
Example ¶
got, _ := ToErrorSliceE([]string{"test1", "test2"}) fmt.Println(got)
Output: [test1 test2]
func ToFloat32E ¶
func ToFloat32SliceE ¶
func ToFloat64E ¶
func ToFloat64SliceE ¶
func ToInt16SliceE ¶
func ToInt32SliceE ¶
func ToInt64OrDefault ¶
func ToInt64SliceE ¶
func ToInt8SliceE ¶
func ToIntOrDefault ¶
func ToIntSliceE ¶
func ToInterfaceSliceE ¶
func ToRuneSliceE ¶
func ToRuneSliceSliceE ¶
func ToUInt32OrDefault ¶
func ToUint16SliceE ¶
func ToUint32SliceE ¶
func ToUint64SliceE ¶
func ToUint8SliceE ¶
func ToUintSliceE ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.