Versions in this module Expand all Collapse all v3 v3.0.0 Sep 6, 2023 Changes in this version + const NullInt + const NullInt64 + const NullString + var NullJSON = JSON(`null`) + func IntValue(i T) (driver.Value, error) + func JSONValue(j JSON) (driver.Value, error) + func MapValue(m Map[V]) (driver.Value, error) + func MarshalInt(i T) ([]byte, error) + func MarshalJSON(j JSON) ([]byte, error) + func MarshalMap(m Map[V]) ([]byte, error) + func MarshalString(s T) ([]byte, error) + func ScanInt(value any, i *T) error + func ScanJSON(value any, j *JSON) error + func ScanMap(value any, m *Map[V]) error + func ScanString(value any, s *T) error + func StringValue(s T) (driver.Value, error) + func UnmarshalInt(b []byte, i *T) error + func UnmarshalJSON(data []byte, j *JSON) error + func UnmarshalMap(data []byte, m *Map[V]) error + func UnmarshalString(b []byte, s *T) error + type Int int + func (i *Int) Scan(value any) error + func (i *Int) UnmarshalJSON(b []byte) error + func (i Int) MarshalJSON() ([]byte, error) + func (i Int) Value() (driver.Value, error) + type Int64 int64 + func (i *Int64) Scan(value any) error + func (i *Int64) UnmarshalJSON(b []byte) error + func (i Int64) MarshalJSON() ([]byte, error) + func (i Int64) Value() (driver.Value, error) + type JSON json.RawMessage + func (j *JSON) Scan(value any) error + func (j *JSON) UnmarshalJSON(data []byte) error + func (j JSON) IsNull() bool + func (j JSON) MarshalJSON() ([]byte, error) + func (j JSON) Value() (driver.Value, error) + type Map map[string]V + func (m *Map[V]) Scan(value any) error + func (m *Map[V]) UnmarshalJSON(data []byte) error + func (m Map[V]) MarshalJSON() ([]byte, error) + func (m Map[V]) Value() (driver.Value, error) + type String string + func (s *String) Scan(value any) error + func (s *String) UnmarshalJSON(b []byte) error + func (s String) MarshalJSON() ([]byte, error) + func (s String) Value() (driver.Value, error) Other modules containing this package github.com/nyaruka/null github.com/nyaruka/null/v2