Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2018 Changes in this version + type Bool struct + func BoolFrom(b bool) Bool + func BoolFromPtr(b *bool) Bool + func NewBool(b bool, valid bool) Bool + func (b *Bool) SetValid(v bool) + func (b *Bool) UnmarshalJSON(data []byte) error + func (b *Bool) UnmarshalText(text []byte) error + func (b Bool) IsZero() bool + func (b Bool) MarshalJSON() ([]byte, error) + func (b Bool) MarshalText() ([]byte, error) + func (b Bool) Ptr() *bool + type Date struct + Time time.Time + Valid bool + func DateFrom(t time.Time) Date + func DateFromPtr(t *time.Time) Date + func NewDate(t time.Time, valid bool) Date + func (t *Date) Scan(value interface{}) error + func (t *Date) SetValid(v time.Time) + func (t *Date) UnmarshalJSON(b []byte) error + func (t *Date) UnmarshalText(b []byte) error + func (t Date) MarshalJSON() ([]byte, error) + func (t Date) MarshalText() ([]byte, error) + func (t Date) Ptr() *time.Time + func (t Date) Value() (driver.Value, error) + type DateTime struct + Time time.Time + Valid bool + func DateTimeFrom(t time.Time) DateTime + func DateTimeFromPtr(t *time.Time) DateTime + func NewDateTime(t time.Time, valid bool) DateTime + func (t *DateTime) Scan(value interface{}) error + func (t *DateTime) SetValid(v time.Time) + func (t *DateTime) UnmarshalJSON(b []byte) error + func (t *DateTime) UnmarshalText(b []byte) error + func (t DateTime) MarshalJSON() ([]byte, error) + func (t DateTime) MarshalText() ([]byte, error) + func (t DateTime) Ptr() *time.Time + func (t DateTime) Value() (driver.Value, error) + type Float struct + func FloatFrom(f float64) Float + func FloatFromPtr(f *float64) Float + func NewFloat(f float64, valid bool) Float + func (f *Float) SetValid(n float64) + func (f *Float) UnmarshalJSON(data []byte) error + func (f *Float) UnmarshalText(text []byte) error + func (f Float) IsZero() bool + func (f Float) MarshalJSON() ([]byte, error) + func (f Float) MarshalText() ([]byte, error) + func (f Float) Ptr() *float64 + type Int struct + func IntFrom(i int64) Int + func IntFromPtr(i *int64) Int + func NewInt(i int64, valid bool) Int + func (i *Int) SetValid(n int64) + func (i *Int) UnmarshalJSON(data []byte) error + func (i *Int) UnmarshalText(text []byte) error + func (i Int) IsZero() bool + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) MarshalText() ([]byte, error) + func (i Int) Ptr() *int64 + type String struct + func NewString(s string, valid bool) String + func StringFrom(s string) String + func StringFromPtr(s *string) String + func (s *String) SetValid(v string) + func (s *String) UnmarshalJSON(data []byte) error + func (s *String) UnmarshalText(text []byte) error + func (s String) IsZero() bool + func (s String) MarshalJSON() ([]byte, error) + func (s String) MarshalText() ([]byte, error) + func (s String) Ptr() *string + type Time struct + Time time.Time + Valid bool + func NewTime(t time.Time, valid bool) Time + func TimeFrom(t time.Time) Time + func TimeFromPtr(t *time.Time) Time + func (t *Time) Scan(value interface{}) error + func (t *Time) SetValid(v time.Time) + func (t *Time) UnmarshalJSON(data []byte) error + func (t *Time) UnmarshalText(text []byte) error + func (t Time) MarshalJSON() ([]byte, error) + func (t Time) MarshalText() ([]byte, error) + func (t Time) Ptr() *time.Time + func (t Time) Value() (driver.Value, error) Incompatible versions in this module v2.0.0-beta.1+incompatible Nov 20, 2018