Documentation ¶
Overview ¶
Package value converts one value type to another.
Index ¶
- func Set(field reflect.Value, value any) error
- func SetFloat[F constraints.Float](field reflect.Value, number F) error
- func SetInteger[I constraints.Integer](field reflect.Value, number I) error
- func SetSliceString(field reflect.Value, arr []string) error
- func SetString(field reflect.Value, str string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFloat ¶
func SetFloat[F constraints.Float](field reflect.Value, number F) error
SetFloat sets float number into a field.
func SetInteger ¶
func SetInteger[I constraints.Integer](field reflect.Value, number I) error
SetInteger sets integer number into a field.
func SetSliceString ¶
SetSliceString sets slice of strings into a field.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.