Documentation ¶
Index ¶
- Variables
- func ConvertFromStr(s string, v reflect.Value) error
- func ConvertToStr(v interface{}) (string, error)
- func UnmarshalJSONUnmarshaler(s string, rv reflect.Value) (matched bool, err error)
- func UnmarshalTimeDuration(s string, v reflect.Value) (matched bool, err error)
- type StringUnmarshal
- type Stringifier
Constants ¶
This section is empty.
Variables ¶
View Source
var StdStringifier = Stringifier{}
View Source
var (
UnSupportTypeError = errors.New("un support type")
)
Functions ¶
func ConvertToStr ¶
Types ¶
type Stringifier ¶
type Stringifier struct {
// contains filtered or unexported fields
}
func (*Stringifier) Register ¶
func (stringifier *Stringifier) Register(stringUnmarshalList ...StringUnmarshal)
func (Stringifier) Unmarshal ¶
func (stringifier Stringifier) Unmarshal(str string, rv reflect.Value) error
func (Stringifier) UnmarshalBuiltIn ¶
func (stringifier Stringifier) UnmarshalBuiltIn(str string, rv reflect.Value) error
Click to show internal directories.
Click to hide internal directories.