Documentation
¶
Index ¶
- func Bool(value string) (bool, error)
- func BoolP(value string) (*bool, error)
- func BoolSlice(val, sep string) ([]bool, error)
- func Bytes(val string) ([]byte, error)
- func BytesSlice(val, sep string) ([][]byte, error)
- func Float[T constraints.Float](value string) (T, error)
- func Float32(val string) (float32, error)
- func Float32Slice(val, sep string) ([]float32, error)
- func Float64(val string) (float64, error)
- func Float64P(val string) (*float64, error)
- func Float64Slice(val, sep string) ([]float64, error)
- func FloatP[T constraints.Float](value string) (*T, error)
- func FloatSlice[T constraints.Float](val, sep string) ([]T, error)
- func FormatAny(t any) string
- func FormatFor[T any](t T) string
- func FormatInteger(value any) string
- func FormatSigned[T constraints.Signed](v T) string
- func FormatUnsigned[T constraints.Unsigned](v T) string
- func Int(val string) (int, error)
- func Int16(val string) (int16, error)
- func Int16P(val string) (*int16, error)
- func Int16Slice(val, sep string) ([]int16, error)
- func Int32(val string) (int32, error)
- func Int32P(val string) (*int32, error)
- func Int32Slice(val, sep string) ([]int32, error)
- func Int64(val string) (int64, error)
- func Int64P(val string) (*int64, error)
- func Int64Slice(val, sep string) ([]int64, error)
- func Int8(val string) (int8, error)
- func Int8P(val string) (*int8, error)
- func Int8Slice(val, sep string) ([]int8, error)
- func IntP(val string) (*int, error)
- func IntSlice(val, sep string) ([]int, error)
- func ParseFor[T any](str string) (T, error)
- func ParsePtrFor[T any](str string) (*T, error)
- func ParseReflectSet(value reflect.Value, val string, field *reflect.StructField) error
- func ParseSetField(dst any, field, value string) error
- func ParseStringsReflectSet(value reflect.Value, vals []string, field *reflect.StructField) error
- func ReflectFormat(value reflect.Value) string
- func Signed[T constraints.Signed](value string) (T, error)
- func SignedP[T constraints.Signed](value string) (*T, error)
- func SignedSlice[T constraints.Signed](val, sep string) ([]T, error)
- func StringSlice(val, sep string) ([]string, error)
- func StringToFloat32P(val string) (*float32, error)
- func ToUint32P(val string) (*uint32, error)
- func Uint(val string) (uint, error)
- func Uint16(val string) (uint16, error)
- func Uint16P(val string) (*uint16, error)
- func Uint16Slice(val, sep string) ([]uint16, error)
- func Uint32(val string) (uint32, error)
- func Uint32Slice(val, sep string) ([]uint32, error)
- func Uint64(val string) (uint64, error)
- func Uint64P(val string) (*uint64, error)
- func Uint64Slice(val, sep string) ([]uint64, error)
- func Uint8(val string) (uint8, error)
- func Uint8P(val string) (*uint8, error)
- func Uint8Slice(val, sep string) ([]uint8, error)
- func UintP(val string) (*uint, error)
- func UintSlice(val, sep string) ([]uint, error)
- func UnSigned[T constraints.Unsigned](value string) (T, error)
- func UnSignedP[T constraints.Unsigned](value string) (*T, error)
- func UnsignedSlice[T constraints.Unsigned](val, sep string) ([]T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolSlice ¶
BoolSlice converts 'val' where individual booleans are separated by 'sep' into a bool slice.
func Bytes ¶
Bytes converts the given string representation of a byte sequence into a slice of bytes A bytes sequence is encoded in URL-safe base64 without padding
func BytesSlice ¶
BytesSlice converts 'val' where individual bytes sequences, encoded in URL-safe
base64 without padding, are separated by 'sep' into a slice of bytes slices slice.
func Float32 ¶
Float32 converts the given string representation of a floating point number into float32.
func Float32Slice ¶
Float32Slice converts 'val' where individual floating point numbers are separated by 'sep' into a float32 slice.
func Float64 ¶
Float64 converts the given string representation into representation of a floating point number into float64.
func Float64Slice ¶
Float64Slice converts 'val' where individual floating point numbers are separated by 'sep' into a float64 slice.
func FloatSlice ¶
func FloatSlice[T constraints.Float](val, sep string) ([]T, error)
FloatSlice converts 'val' where individual floating point numbers are separated by 'sep' into a float slice.
func FormatInteger ¶
func FormatSigned ¶
func FormatSigned[T constraints.Signed](v T) string
func FormatUnsigned ¶
func FormatUnsigned[T constraints.Unsigned](v T) string
func Int16Slice ¶
Int16Slice converts 'val' where individual integers are separated by 'sep' into a int slice.
func Int32Slice ¶
Int32Slice converts 'val' where individual integers are separated by 'sep' into a int32 slice.
func Int64Slice ¶
Int64Slice converts 'val' where individual integers are separated by 'sep' into a int64 slice.
func Int8Slice ¶
Int8Slice converts 'val' where individual integers are separated by 'sep' into a int8 slice.
func IntSlice ¶
IntSlice converts 'val' where individual integers are separated by 'sep' into a int slice.
func ParsePtrFor ¶
func ParseReflectSet ¶
func ParseSetField ¶
func ParseStringsReflectSet ¶
func ReflectFormat ¶
func SignedSlice ¶
func SignedSlice[T constraints.Signed](val, sep string) ([]T, error)
SignedSlice converts 'val' where individual integers are separated by 'sep' into a Signed slice.
func StringSlice ¶
StringSlice converts 'val' where individual strings are separated by 'sep' into a string slice.
func StringToFloat32P ¶
func Uint16Slice ¶
Uint16Slice converts 'val' where individual integers are separated by 'sep' into a uint slice.
func Uint32Slice ¶
Uint32Slice converts 'val' where individual integers are separated by 'sep' into a uint32 slice.
func Uint64Slice ¶
Uint64Slice converts 'val' where individual integers are separated by 'sep' into a uint64 slice.
func Uint8Slice ¶
Uint8Slice converts 'val' where individual integers are separated by 'sep' into a uint8 slice.
func UintSlice ¶
UintSlice converts 'val' where individual integers are separated by 'sep' into a uint slice.
func UnsignedSlice ¶
func UnsignedSlice[T constraints.Unsigned](val, sep string) ([]T, error)
UnsignedSlice converts 'val' where individual integers are separated by 'sep' into a Unsigned slice.
Types ¶
This section is empty.