Documentation ¶
Overview ¶
Package dirty tracks when values have been unmarshalled in order to differentiate between values that are absent and values that are null.
Index ¶
- type Bool
- type Float
- type Int
- type String
- type Time
- type Update
- type Updates
- func (u Updates) DiffBool(name string, field bool, value Bool) bool
- func (u Updates) DiffFloat(name string, field float64, value Float) float64
- func (u Updates) DiffInt(name string, field int64, value Int) int64
- func (u Updates) DiffNullBool(name string, field null.Bool, value Bool) null.Bool
- func (u Updates) DiffNullFloat(name string, field null.Float, value Float) null.Float
- func (u Updates) DiffNullInt(name string, field null.Int, value Int) null.Int
- func (u Updates) DiffNullString(name string, field null.String, value String) null.String
- func (u Updates) DiffNullTime(name string, field null.Time, value Time) null.Time
- func (u Updates) DiffNullTimeBool(name string, field null.Time, value Bool) null.Time
- func (u Updates) DiffString(name string, field string, value String) string
- func (u Updates) DiffTime(name string, field time.Time, value Time) time.Time
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bool ¶
type Bool struct { null.Bool Dirty bool }
func (*Bool) UnmarshalJSON ¶
func (*Bool) UnmarshalText ¶
type Float ¶
type Float struct { null.Float Dirty bool }
func (*Float) UnmarshalJSON ¶
func (*Float) UnmarshalText ¶
type Int ¶
type Int struct { null.Int Dirty bool }
func (*Int) UnmarshalJSON ¶
func (*Int) UnmarshalText ¶
type String ¶
type String struct { null.String Dirty bool }
func StringFrom ¶
func (*String) UnmarshalJSON ¶
func (*String) UnmarshalText ¶
type Time ¶
type Time struct { null.Time Dirty bool }
func (*Time) UnmarshalJSON ¶
func (*Time) UnmarshalText ¶
type Updates ¶
func NewUpdates ¶
func NewUpdates() Updates
func (Updates) DiffNullBool ¶
func (Updates) DiffNullFloat ¶
func (Updates) DiffNullInt ¶
func (Updates) DiffNullString ¶
func (Updates) DiffNullTime ¶
func (Updates) DiffNullTimeBool ¶
func (Updates) DiffString ¶
Click to show internal directories.
Click to hide internal directories.