Documentation ¶
Index ¶
- Variables
- func BoolParser(s string) (interface{}, error)
- func Float64Parser(s string) (interface{}, error)
- func Int64Parser(s string) (interface{}, error)
- func Parse(t Type, s ...string) (v interface{}, err error)
- func StringParser(s string) (interface{}, error)
- type Bool
- type Float64
- type Int64
- type Parser
- type SlFloat64
- type SlInt64
- type SlString
- type String
- type Type
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NilFloat64 = &Float64{Valid: false} NilString = &String{Valid: false} NilBool = &Bool{Valid: false} NilInt64 = &Int64{Valid: false} NilSlInt64 = &SlInt64{} NilSlFloat64 = &SlFloat64{} NilSlString = &SlString{} )
View Source
var ErrInvalidValueType = errors.New("invalid value type given")
View Source
var Parsers = []Parser{ Int64Parser, Float64Parser, BoolParser, StringParser, }
All defined parsers in order (to avoid false positives)
Functions ¶
func BoolParser ¶
func Float64Parser ¶
func Int64Parser ¶
func StringParser ¶
Types ¶
type Float64 ¶
type Float64 sql.NullFloat64
type String ¶
type String sql.NullString
Click to show internal directories.
Click to hide internal directories.