null

package
v2.18.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2024 License: CC0-1.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	null.Bool
	Value       bool
	NullContent bool
}

func BoolFrom added in v2.15.1

func BoolFrom(s bool) Bool

BoolFrom creates a new Bool that will never be blank.

func BoolFromPtr added in v2.15.1

func BoolFromPtr(s *bool) Bool

BoolFromPtr creates a new Bool that be null if s is nil.

func NewBool added in v2.15.1

func NewBool(i bool, valid bool, isNull bool) Bool

NewBool creates a new Bool

func NullBool added in v2.15.1

func NullBool(s bool) Bool

NullBool creates a new Bool with set null content

type Float32

type Float32 struct {
	null.Float32
	Value       float32
	NullContent bool
}

func Float32From added in v2.15.1

func Float32From(s float32) Float32

Float32From creates a new Float32 that will never be blank.

func Float32FromPtr added in v2.15.1

func Float32FromPtr(s *float32) Float32

Float32FromPtr creates a new Float32 that be null if s is nil.

func NewFloat32 added in v2.15.1

func NewFloat32(i float32, valid bool, isNull bool) Float32

NewFloat32 creates a new Float32

func NullFloat32 added in v2.15.1

func NullFloat32(s bool) Float32

NullFloat32 creates a new Float32 with set null content

type Float64

type Float64 struct {
	null.Float64
	Value       float64
	NullContent bool
}

func Float64From added in v2.15.1

func Float64From(s float64) Float64

Float64From creates a new Float64 that will never be blank.

func Float64FromPtr added in v2.15.1

func Float64FromPtr(s *float64) Float64

Float64FromPtr creates a new Float64 that be null if s is nil.

func NewFloat64 added in v2.15.1

func NewFloat64(i float64, valid bool, isNull bool) Float64

NewFloat64 creates a new Float64

func NullFloat64 added in v2.15.1

func NullFloat64(s bool) Float64

NullFloat64 creates a new Float64 with set null content

type Int

type Int struct {
	null.Int
	Value       int
	NullContent bool
}

func IntFrom added in v2.15.1

func IntFrom(s int) Int

IntFrom creates a new Int that will never be blank.

func IntFromPtr added in v2.15.1

func IntFromPtr(s *int) Int

IntFromPtr creates a new Int that be null if s is nil.

func NewInt added in v2.15.1

func NewInt(i int, valid bool, isNull bool) Int

NewInt creates a new Int

func NullInt added in v2.15.1

func NullInt(s bool) Int

NullInt creates a new Int with set null content

type Int16

type Int16 struct {
	null.Int16
	Value       int16
	NullContent bool
}

func Int16From added in v2.15.1

func Int16From(s int16) Int16

Int16From creates a new Int16 that will never be blank.

func Int16FromPtr added in v2.15.1

func Int16FromPtr(s *int16) Int16

Int16FromPtr creates a new Int16 that be null if s is nil.

func NewInt16 added in v2.15.1

func NewInt16(i int16, valid bool, isNull bool) Int16

NewInt16 creates a new Int16

func NullInt16 added in v2.15.1

func NullInt16(s bool) Int16

NullInt16 creates a new Int16 with set null content

type Int32

type Int32 struct {
	null.Int32
	Value       int32
	NullContent bool
}

func Int32From added in v2.15.1

func Int32From(s int32) Int32

Int32From creates a new Int32 that will never be blank.

func Int32FromPtr added in v2.15.1

func Int32FromPtr(s *int32) Int32

Int32FromPtr creates a new Int32 that be null if s is nil.

func NewInt32 added in v2.15.1

func NewInt32(i int32, valid bool, isNull bool) Int32

NewInt32 creates a new Int32

func NullInt32 added in v2.15.1

func NullInt32(s bool) Int32

NullInt32 creates a new Int32 with set null content

type Int64

type Int64 struct {
	null.Int64
	Value       int64
	NullContent bool
}

func Int64From added in v2.15.1

func Int64From(s int64) Int64

Int64From creates a new Int64 that will never be blank.

func Int64FromPtr added in v2.15.1

func Int64FromPtr(s *int64) Int64

Int64FromPtr creates a new Int64 that be null if s is nil.

func NewInt64 added in v2.15.1

func NewInt64(i int64, valid bool, isNull bool) Int64

NewInt64 creates a new Int64

func NullInt64 added in v2.15.1

func NullInt64(s bool) Int64

NullInt64 creates a new Int64 with set null content

type Int8

type Int8 struct {
	null.Int8
	Value       int8
	NullContent bool
}

func Int8From added in v2.15.1

func Int8From(s int8) Int8

Int8From creates a new Int8 that will never be blank.

func Int8FromPtr added in v2.15.1

func Int8FromPtr(s *int8) Int8

Int8FromPtr creates a new Int8 that be null if s is nil.

func NewInt8 added in v2.15.1

func NewInt8(i int8, valid bool, isNull bool) Int8

NewInt8 creates a new Int8

func NullInt8 added in v2.15.1

func NullInt8(s bool) Int8

NullInt8 creates a new Int8 with set null content

type String

type String struct {
	null.String
	Value       string
	NullContent bool
}

func NewString added in v2.15.1

func NewString(value string, valid bool, isNull bool) String

NewString creates a new String

func NullString added in v2.15.1

func NullString(s bool) String

NullString creates a new String with set null content

func StringFrom added in v2.15.1

func StringFrom(s string) String

StringFrom creates a new String that wil, falsel never be blank.

func StringFromPtr added in v2.15.1

func StringFromPtr(s *string) String

StringFromPtr creates a new String that be null if s is nil.

type Time

type Time struct {
	null.Time
	Value       time.Time
	NullContent bool
}

func NewTime added in v2.15.1

func NewTime(i time.Time, valid bool, isNull bool) Time

NewTime creates a new Time

func NullTime added in v2.15.1

func NullTime(s bool) Time

NullTime creates a new Time with set null content

func TimeFrom added in v2.15.1

func TimeFrom(s time.Time) Time

TimeFrom creates a new Time that will never be blank.

func TimeFromPtr added in v2.15.1

func TimeFromPtr(s *time.Time) Time

TimeFromPtr creates a new Time that be null if s is nil.

type Uint

type Uint struct {
	null.Uint
	Value       uint
	NullContent bool
}

func NewUint added in v2.15.1

func NewUint(i uint, valid bool, isNull bool) Uint

NewUint creates a new Uint

func NullUint added in v2.15.1

func NullUint(s bool) Uint

NullUint creates a new Uint with set null content

func UintFrom added in v2.15.1

func UintFrom(s uint) Uint

UintFrom creates a new Uint that will never be blank.

func UintFromPtr added in v2.15.1

func UintFromPtr(s *uint) Uint

UintFromPtr creates a new Uint that be null if s is nil.

type Uint16

type Uint16 struct {
	null.Uint16
	Value       uint16
	NullContent bool
}

func NewUint16 added in v2.15.1

func NewUint16(i uint16, valid bool, isNull bool) Uint16

NewUint16 creates a new Uint16

func NullUint16 added in v2.15.1

func NullUint16(s bool) Uint16

NullUint16 creates a new Uint16 with set null content

func Uint16From added in v2.15.1

func Uint16From(s uint16) Uint16

Uint16From creates a new Uint16 that will never be blank.

func Uint16FromPtr added in v2.15.1

func Uint16FromPtr(s *uint16) Uint16

Uint16FromPtr creates a new Uint16 that be null if s is nil.

type Uint32

type Uint32 struct {
	null.Uint32
	Value       uint32
	NullContent bool
}

func NewUint32 added in v2.15.1

func NewUint32(i uint32, valid bool, isNull bool) Uint32

NewUint32 creates a new Uint32

func NullUint32 added in v2.15.1

func NullUint32(s bool) Uint32

NullUint32 creates a new Uint32 with set null content

func Uint32From added in v2.15.1

func Uint32From(s uint32) Uint32

Uint32From creates a new Uint32 that will never be blank.

func Uint32FromPtr added in v2.15.1

func Uint32FromPtr(s *uint32) Uint32

Uint32FromPtr creates a new Uint32 that be null if s is nil.

type Uint64

type Uint64 struct {
	null.Uint64
	Value       uint64
	NullContent bool
}

func NewUint64 added in v2.15.1

func NewUint64(i uint64, valid bool, isNull bool) Uint64

NewUint64 creates a new Uint64

func NullUint64 added in v2.15.1

func NullUint64(s bool) Uint64

NullUint64 creates a new Uint64 with set null content

func Uint64From added in v2.15.1

func Uint64From(s uint64) Uint64

Uint64From creates a new Uint64 that will never be blank.

func Uint64FromPtr added in v2.15.1

func Uint64FromPtr(s *uint64) Uint64

Uint64FromPtr creates a new Uint64 that be null if s is nil.

type Uint8

type Uint8 struct {
	null.Uint8
	Value       uint8
	NullContent bool
}

func NewUint8 added in v2.15.1

func NewUint8(i uint8, valid bool, isNull bool) Uint8

NewUint8 creates a new Uint8

func NullUint8 added in v2.15.1

func NullUint8(s bool) Uint8

NullUint8 creates a new Uint8 with set null content

func Uint8From added in v2.15.1

func Uint8From(s uint8) Uint8

Uint8From creates a new Uint8 that will never be blank.

func Uint8FromPtr added in v2.15.1

func Uint8FromPtr(s *uint8) Uint8

Uint8FromPtr creates a new Uint8 that be null if s is nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL