Documentation
¶
Index ¶
- Variables
- type Bool
- func (b Bool) MarshalJSON() ([]byte, error)
- func (b Bool) MarshalText() ([]byte, error)
- func (b *Bool) Scan(value interface{}) error
- func (b Bool) String() string
- func (b *Bool) UnmarshalJSON(buf []byte) error
- func (b *Bool) UnmarshalText(buf []byte) error
- func (b Bool) Value() (driver.Value, error)
- type Duration
- func (d Duration) MarshalJSON() ([]byte, error)
- func (d *Duration) MarshalText() ([]byte, error)
- func (d *Duration) Scan(v interface{}) error
- func (d Duration) String() string
- func (d *Duration) UnmarshalJSON(b []byte) error
- func (d *Duration) UnmarshalText(b []byte) error
- func (d Duration) Value() (driver.Value, error)
- type Int
- type SlicedString
Constants ¶
This section is empty.
Variables ¶
var (
ErrDestUnsupported = errors.New("Unsupported dest type")
)
Functions ¶
This section is empty.
Types ¶
type Bool ¶ added in v0.0.6
Bool contain a boolean data that can be null, and also string on JSON and SQL, but value will be converted into bool type
func (Bool) MarshalJSON ¶ added in v0.0.6
MarshalJSON implement the Marshaler interface
func (Bool) MarshalText ¶ added in v0.0.6
MarshalText implement Text Marshaller interface
func (*Bool) UnmarshalJSON ¶ added in v0.0.6
UnmarshalJSON implement the un-Marshaler interface
func (*Bool) UnmarshalText ¶ added in v0.0.6
UnmarshalText implement the text un-Marshaller interface
type Duration ¶
Duration is wrapper for time.Duration with additional methods
func (Duration) MarshalJSON ¶
MarshalJSON takes a duration and marshal it as a string
func (*Duration) MarshalText ¶ added in v0.0.3
MarshalText takes duration and marshal it as a string
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON takes a slice of bytes and convert it to Duration
func (*Duration) UnmarshalText ¶ added in v0.0.3
UnmarshalText unmar
type Int ¶ added in v0.0.6
Int struct contains int data type that can be null, and also string on JSON and SQL, but value will be converted to int type
func (Int) MarshalJSON ¶ added in v0.0.6
MarshalJSON takes a Int and marshal it as a string
func (Int) MarshalText ¶ added in v0.0.6
MarshalText takes a Int and marshal it as a string
func (*Int) UnmarshalJSON ¶ added in v0.0.6
UnmarshalJSON takes a slice of bytes and convert it to Int
func (*Int) UnmarshalText ¶ added in v0.0.6
UnmarshalText takes a slice of bytes and convert it to Int
type SlicedString ¶ added in v0.0.7
type SlicedString []string
SlicedString parses and translate either a string or a slice of strings based on serialization JSON/Text/DB.
func (*SlicedString) Scan ¶ added in v0.0.7
func (s *SlicedString) Scan(value interface{}) error
Scan implements the Scanner interface.
func (*SlicedString) UnmarshalJSON ¶ added in v0.0.7
func (s *SlicedString) UnmarshalJSON(data []byte) error
UnmarshalJSON for contacts