Versions in this module Expand all Collapse all v5 v5.0.0 Feb 11, 2024 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 Byte struct + func ByteFrom(i byte) Byte + func ByteFromPtr(i *byte) Byte + func NewByte(i byte, valid bool) Byte + func (b *Byte) SetValid(n byte) + func (b *Byte) UnmarshalJSON(data []byte) error + func (b *Byte) UnmarshalText(text []byte) error + func (b Byte) Equal(other Byte) bool + func (b Byte) IsZero() bool + func (b Byte) MarshalJSON() ([]byte, error) + func (b Byte) MarshalText() ([]byte, error) + func (b Byte) Ptr() *byte + func (b Byte) ValueOrZero() byte + type Float struct + func FloatFrom(f float64) Float + func FloatFromPtr(f *float64) Float + func NewFloat(f float64, valid bool) Float + func (f *Float) SetValid(v 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 Int16 struct + func Int16From(i int16) Int16 + func Int16FromPtr(i *int16) Int16 + func NewInt16(i int16, valid bool) Int16 + func (i *Int16) SetValid(n int16) + func (i *Int16) UnmarshalJSON(data []byte) error + func (i *Int16) UnmarshalText(text []byte) error + func (i Int16) Equal(other Int16) bool + func (i Int16) IsZero() bool + func (i Int16) MarshalJSON() ([]byte, error) + func (i Int16) MarshalText() ([]byte, error) + func (i Int16) Ptr() *int16 + func (i Int16) ValueOrZero() int16 + type Int32 struct + func Int32From(i int32) Int32 + func Int32FromPtr(i *int32) Int32 + func NewInt32(i int32, valid bool) Int32 + func (i *Int32) SetValid(n int32) + func (i *Int32) UnmarshalJSON(data []byte) error + func (i *Int32) UnmarshalText(text []byte) error + func (i Int32) Equal(other Int32) bool + func (i Int32) IsZero() bool + func (i Int32) MarshalJSON() ([]byte, error) + func (i Int32) MarshalText() ([]byte, error) + func (i Int32) Ptr() *int32 + func (i Int32) ValueOrZero() int32 + type Int64 = Int + 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) 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 Other modules containing this package github.com/guregu/null github.com/guregu/null/v6