Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvertFunc ¶
ConvertFunc is a function that converts a string to a typed value
type Converter ¶
type Converter struct {
// contains filtered or unexported fields
}
Converter converts string values to typed values
func (*Converter) Convert ¶
func (c *Converter) Convert(value string, targetType reflect.Type, format string) (interface{}, error)
Convert converts a string value to the target type
func (*Converter) RegisterConverter ¶
func (c *Converter) RegisterConverter(t reflect.Type, fn ConvertFunc)
RegisterConverter registers a custom converter for a type
Click to show internal directories.
Click to hide internal directories.