null

package
v3.0.1-0...-9a144ea Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package null is used to represent values where the 0 value is significant This pattern is common in ECMAScript, this allows us to maintain a matching API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bool

type Bool struct {
	Valid bool
	Bool  bool
}

Bool is used to represent a bool that may be null

func NewBool

func NewBool(value bool) Bool

NewBool turns a bool into a valid null.Bool

type Byte

type Byte struct {
	Valid bool
	Byte  byte
}

Byte is used to represent a byte that may be null

func NewByte

func NewByte(value byte) Byte

NewByte turns a byte into a valid null.Byte

type Complex128

type Complex128 struct {
	Valid      bool
	Complex128 complex128
}

Complex128 is used to represent a complex128 that may be null

func NewComplex128

func NewComplex128(value complex128) Complex128

NewComplex128 turns a complex128 into a valid null.Complex128

type Complex64

type Complex64 struct {
	Valid     bool
	Complex64 complex64
}

Complex64 is used to represent a complex64 that may be null

func NewComplex64

func NewComplex64(value complex64) Complex64

NewComplex64 turns a complex64 into a valid null.Complex64

type Float32

type Float32 struct {
	Valid   bool
	Float32 float32
}

Float32 is used to represent a float32 that may be null

func NewFloat32

func NewFloat32(value float32) Float32

NewFloat32 turns a float32 into a valid null.Float32

type Float64

type Float64 struct {
	Valid   bool
	Float64 float64
}

Float64 is used to represent a float64 that may be null

func NewFloat64

func NewFloat64(value float64) Float64

NewFloat64 turns a float64 into a valid null.Float64

type Int

type Int struct {
	Valid bool
	Int   int
}

Int is used to represent a int that may be null

func NewInt

func NewInt(value int) Int

NewInt turns a int into a valid null.Int

type Int16

type Int16 struct {
	Valid bool
	Int16 int16
}

Int16 is used to represent a int16 that may be null

func NewInt16

func NewInt16(value int16) Int16

NewInt16 turns a int16 into a valid null.Int16

type Int32

type Int32 struct {
	Valid bool
	Int32 int32
}

Int32 is used to represent a int32 that may be null

func NewInt32

func NewInt32(value int32) Int32

NewInt32 turns a int32 into a valid null.Int32

type Int64

type Int64 struct {
	Valid bool
	Int64 int64
}

Int64 is used to represent a int64 that may be null

func NewInt64

func NewInt64(value int64) Int64

NewInt64 turns a int64 into a valid null.Int64

type Int8

type Int8 struct {
	Valid bool
	Int8  int8
}

Int8 is used to represent a int8 that may be null

func NewInt8

func NewInt8(value int8) Int8

NewInt8 turns a int8 into a valid null.Int8

type Rune

type Rune struct {
	Valid bool
	Rune  rune
}

Rune is used to represent a rune that may be null

func NewRune

func NewRune(value rune) Rune

NewRune turns a rune into a valid null.Rune

type String

type String struct {
	Valid  bool
	String string
}

String is used to represent a string that may be null

func NewString

func NewString(value string) String

NewString turns a string into a valid null.String

type Uint

type Uint struct {
	Valid bool
	Uint  uint
}

Uint is used to represent a uint that may be null

func NewUint

func NewUint(value uint) Uint

NewUint turns a uint into a valid null.Uint

type Uint16

type Uint16 struct {
	Valid  bool
	Uint16 uint16
}

Uint16 is used to represent a uint16 that may be null

func NewUint16

func NewUint16(value uint16) Uint16

NewUint16 turns a uint16 into a valid null.Uint16

type Uint32

type Uint32 struct {
	Valid  bool
	Uint32 uint32
}

Uint32 is used to represent a uint32 that may be null

func NewUint32

func NewUint32(value uint32) Uint32

NewUint32 turns a uint32 into a valid null.Uint32

type Uint64

type Uint64 struct {
	Valid  bool
	Uint64 uint64
}

Uint64 is used to represent a uint64 that may be null

func NewUint64

func NewUint64(value uint64) Uint64

NewUint64 turns a uint64 into a valid null.Uint64

type Uint8

type Uint8 struct {
	Valid bool
	Uint8 uint8
}

Uint8 is used to represent a uint8 that may be null

func NewUint8

func NewUint8(value uint8) Uint8

NewUint8 turns a uint8 into a valid null.Uint8

Jump to

Keyboard shortcuts

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