Versions in this module Expand all Collapse all v1 v1.0.0 Feb 2, 2023 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) Equal(other Bool) bool + func (b Bool) IsZero() bool + func (b Bool) MarshalJSON() ([]byte, error) + func (b Bool) MarshalText() ([]byte, error) + func (b Bool) Ptr() *bool + func (b Bool) ValueOrZero() bool + 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) Equal(other Float) bool + func (f Float) IsZero() bool + func (f Float) MarshalJSON() ([]byte, error) + func (f Float) MarshalText() ([]byte, error) + func (f Float) Ptr() *float64 + func (f Float) ValueOrZero() 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) Equal(other Int) bool + func (i Int) IsZero() bool + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) MarshalText() ([]byte, error) + func (i Int) Ptr() *int64 + func (i Int) ValueOrZero() 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) Equal(other String) bool + func (s String) IsZero() bool + func (s String) MarshalJSON() ([]byte, error) + func (s String) MarshalText() ([]byte, error) + func (s String) Ptr() *string + func (s String) ValueOrZero() string + type Time struct + func NewTime(t time.Time, valid bool) Time + func TimeFrom(t time.Time) Time + func TimeFromPtr(t *time.Time) Time + func (t *Time) SetValid(v time.Time) + func (t *Time) UnmarshalJSON(data []byte) error + func (t *Time) UnmarshalText(text []byte) error + func (t Time) Equal(other Time) bool + func (t Time) ExactEqual(other Time) bool + func (t Time) IsZero() bool + 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) + func (t Time) ValueOrZero() time.Time