t

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

Bool A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewBool

func NewBool(value any) Bool

NewBool Generates a new object of type t.Bool based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Bool) BoolValue

func (b Bool) BoolValue() bool

BoolValue Returns the numeric value of this object

func (Bool) IsNil

func (b Bool) IsNil() bool

IsNil Check if the object is empty

func (Bool) MarshalJSON

func (b Bool) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Bool) Scan

func (b *Bool) Scan(value any) error

Scan implements the driver Scanner interface.

func (Bool) String

func (b Bool) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Bool) UnmarshalJSON

func (b *Bool) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Bool) Value

func (b Bool) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Date

type Date struct {
	// contains filtered or unexported fields
}

Date A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewDate

func NewDate(value any) Date

NewDate Generates a new object of type t.Date based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Date) DateValue

func (i Date) DateValue() int32

DateValue Returns the numeric value of this object

func (Date) IsNil

func (i Date) IsNil() bool

IsNil Check if the object is empty

func (Date) MarshalJSON

func (i Date) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Date) Scan

func (i *Date) Scan(value any) error

Scan implements the driver Scanner interface.

func (Date) String

func (i Date) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Date) UnmarshalJSON

func (i *Date) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Date) Value

func (i Date) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Decimal

type Decimal struct {
	// contains filtered or unexported fields
}

Decimal A nullable safe type, supports JSON escape, Database field definition

func NewDecimal

func NewDecimal(value any) Decimal

NewDecimal Generates a new object of type t.Decimal based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Decimal) DecimalValue

func (i Decimal) DecimalValue() float64

DecimalValue Returns the numeric value of this object

func (Decimal) IsNil

func (i Decimal) IsNil() bool

IsNil Check if the object is empty

func (Decimal) MarshalJSON

func (i Decimal) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Decimal) Scan

func (i *Decimal) Scan(value any) error

Scan implements the driver Scanner interface.

func (Decimal) String

func (i Decimal) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Decimal) UnmarshalJSON

func (i *Decimal) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Decimal) Value

func (i Decimal) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Float32

type Float32 struct {
	// contains filtered or unexported fields
}

Float32 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewFloat32

func NewFloat32(value any) Float32

NewFloat32 Generates a new object of type t.Float32 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Float32) Float32Value

func (i Float32) Float32Value() float32

Float32Value Returns the numeric value of this object

func (Float32) IsNil

func (i Float32) IsNil() bool

IsNil Check if the object is empty

func (Float32) MarshalJSON

func (i Float32) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Float32) Scan

func (i *Float32) Scan(value any) error

Scan implements the driver Scanner interface.

func (Float32) String

func (i Float32) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Float32) UnmarshalJSON

func (i *Float32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Float32) Value

func (i Float32) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Float64

type Float64 struct {
	// contains filtered or unexported fields
}

Float64 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewFloat64

func NewFloat64(value any) Float64

NewFloat64 Generates a new object of type t.Float64 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Float64) Float64Value

func (i Float64) Float64Value() float64

Float64Value Returns the numeric value of this object

func (Float64) IsNil

func (i Float64) IsNil() bool

IsNil Check if the object is empty

func (Float64) MarshalJSON

func (i Float64) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Float64) Scan

func (i *Float64) Scan(value any) error

Scan implements the driver Scanner interface.

func (Float64) String

func (i Float64) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Float64) UnmarshalJSON

func (i *Float64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Float64) Value

func (i Float64) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int

type Int struct {
	// contains filtered or unexported fields
}

Int A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewInt

func NewInt(value any) Int

NewInt Generates a new object of type t.Int based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Int) IntValue

func (i Int) IntValue() int

IntValue Returns the numeric value of this object

func (Int) IsNil

func (i Int) IsNil() bool

IsNil Check if the object is empty

func (Int) MarshalJSON

func (i Int) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Int) Scan

func (i *Int) Scan(value any) error

Scan implements the driver Scanner interface.

func (Int) String

func (i Int) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Int) UnmarshalJSON

func (i *Int) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Int) Value

func (i Int) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int16

type Int16 struct {
	// contains filtered or unexported fields
}

Int16 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewInt16

func NewInt16(value any) Int16

NewInt16 Generates a new object of type t.Int16 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Int16) Int16Value

func (i Int16) Int16Value() int16

Int16Value Returns the numeric value of this object

func (Int16) IsNil

func (i Int16) IsNil() bool

IsNil Check if the object is empty

func (Int16) MarshalJSON

func (i Int16) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Int16) Scan

func (i *Int16) Scan(value any) error

Scan implements the driver Scanner interface.

func (Int16) String

func (i Int16) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Int16) UnmarshalJSON

func (i *Int16) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Int16) Value

func (i Int16) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int32

type Int32 struct {
	// contains filtered or unexported fields
}

Int32 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewInt32

func NewInt32(value any) Int32

NewInt32 Generates a new object of type t.Int32 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Int32) Int32Value

func (i Int32) Int32Value() int32

Int32Value Returns the numeric value of this object

func (Int32) IsNil

func (i Int32) IsNil() bool

IsNil Check if the object is empty

func (Int32) MarshalJSON

func (i Int32) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Int32) Scan

func (i *Int32) Scan(value any) error

Scan implements the driver Scanner interface.

func (Int32) String

func (i Int32) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Int32) UnmarshalJSON

func (i *Int32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Int32) Value

func (i Int32) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int64

type Int64 struct {
	// contains filtered or unexported fields
}

Int64 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewInt64

func NewInt64(value any) Int64

NewInt64 Generates a new object of type t.Int64 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Int64) Int64Value

func (i Int64) Int64Value() int64

Int64Value Returns the numeric value of this object

func (Int64) IsNil

func (i Int64) IsNil() bool

IsNil Check if the object is empty

func (Int64) MarshalJSON

func (i Int64) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Int64) Scan

func (i *Int64) Scan(value any) error

Scan implements the driver Scanner interface.

func (Int64) String

func (i Int64) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Int64) UnmarshalJSON

func (i *Int64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Int64) Value

func (i Int64) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Int8

type Int8 struct {
	// contains filtered or unexported fields
}

Int8 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewInt8

func NewInt8(value any) Int8

NewInt8 Generates a new object of type t.Int8 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (Int8) Int8Value

func (i Int8) Int8Value() int8

Int8Value Returns the numeric value of this object

func (Int8) IsNil

func (i Int8) IsNil() bool

IsNil Check if the object is empty

func (Int8) MarshalJSON

func (i Int8) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*Int8) Scan

func (i *Int8) Scan(value any) error

Scan implements the driver Scanner interface.

func (Int8) String

func (i Int8) String() string

String Returns the string value of this object, implements the Stringer interface.

func (*Int8) UnmarshalJSON

func (i *Int8) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (Int8) Value

func (i Int8) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type String

type String struct {
	// contains filtered or unexported fields
}

String A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewString

func NewString(value any) String

NewString Generates a new object of type t.String based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (String) IsNil

func (s String) IsNil() bool

IsNil Check if the object is empty

func (String) MarshalJSON

func (s String) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*String) Scan

func (s *String) Scan(value any) error

Scan implements the driver Scanner interface.

func (String) String

func (s String) String() string

String Returns the string value of this object, implements the Stringer interface.

func (String) StringValue

func (s String) StringValue() string

StringValue Returns the numeric value of this object

func (*String) UnmarshalJSON

func (s *String) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (String) Value

func (s String) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt

type UInt struct {
	// contains filtered or unexported fields
}

UInt A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewUInt

func NewUInt(value any) UInt

NewUInt Generates a new object of type t.UInt based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (UInt) IsNil

func (u UInt) IsNil() bool

IsNil Check if the object is empty

func (UInt) MarshalJSON

func (u UInt) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*UInt) Scan

func (u *UInt) Scan(value any) error

Scan implements the driver Scanner interface.

func (UInt) String

func (u UInt) String() string

String Returns the string value of this object, implements the Stringer interface.

func (UInt) UIntValue

func (u UInt) UIntValue() uint

UIntValue Returns the numeric value of this object

func (*UInt) UnmarshalJSON

func (u *UInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (UInt) Value

func (u UInt) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt16

type UInt16 struct {
	// contains filtered or unexported fields
}

UInt16 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewUInt16

func NewUInt16(value any) UInt16

NewUInt16 Generates a new object of type t.UInt16 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (UInt16) IsNil

func (u UInt16) IsNil() bool

IsNil Check if the object is empty

func (UInt16) MarshalJSON

func (u UInt16) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*UInt16) Scan

func (u *UInt16) Scan(value any) error

Scan implements the driver Scanner interface.

func (UInt16) String

func (u UInt16) String() string

String Returns the string value of this object, implements the Stringer interface.

func (UInt16) UIntValue

func (u UInt16) UIntValue() uint16

UIntValue Returns the numeric value of this object

func (*UInt16) UnmarshalJSON

func (u *UInt16) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (UInt16) Value

func (u UInt16) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt32

type UInt32 struct {
	// contains filtered or unexported fields
}

UInt32 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewUInt32

func NewUInt32(value any) UInt32

NewUInt32 Generates a new object of type t.UInt32 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (UInt32) IsNil

func (u UInt32) IsNil() bool

IsNil Check if the object is empty

func (UInt32) MarshalJSON

func (u UInt32) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*UInt32) Scan

func (u *UInt32) Scan(value any) error

Scan implements the driver Scanner interface.

func (UInt32) String

func (u UInt32) String() string

String Returns the string value of this object, implements the Stringer interface.

func (UInt32) UIntValue

func (u UInt32) UIntValue() uint32

UIntValue Returns the numeric value of this object

func (*UInt32) UnmarshalJSON

func (u *UInt32) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (UInt32) Value

func (u UInt32) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt64

type UInt64 struct {
	// contains filtered or unexported fields
}

UInt64 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewUInt64

func NewUInt64(value any) UInt64

NewUInt64 Generates a new object of type t.UInt64 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (UInt64) IsNil

func (u UInt64) IsNil() bool

IsNil Check if the object is empty

func (UInt64) MarshalJSON

func (u UInt64) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*UInt64) Scan

func (u *UInt64) Scan(value any) error

Scan implements the driver Scanner interface.

func (UInt64) String

func (u UInt64) String() string

String Returns the string value of this object, implements the Stringer interface.

func (UInt64) UIntValue

func (u UInt64) UIntValue() uint64

UIntValue Returns the numeric value of this object

func (*UInt64) UnmarshalJSON

func (u *UInt64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (UInt64) Value

func (u UInt64) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type UInt8

type UInt8 struct {
	// contains filtered or unexported fields
}

UInt8 A nullable safe type, based on Golang basic type, supports JSON escape, Database field definition

func NewUInt8

func NewUInt8(value any) UInt8

NewUInt8 Generates a new object of type t.UInt8 based on the specified value Warning: When value is passed in as uint(X) and float(X), be aware of data overflow and loss of precision

func (UInt8) IsNil

func (u UInt8) IsNil() bool

IsNil Check if the object is empty

func (UInt8) MarshalJSON

func (u UInt8) MarshalJSON() ([]byte, error)

MarshalJSON implements the encoding json interface.

func (*UInt8) Scan

func (u *UInt8) Scan(value any) error

Scan implements the driver Scanner interface.

func (UInt8) String

func (u UInt8) String() string

String Returns the string value of this object, implements the Stringer interface.

func (UInt8) UIntValue

func (u UInt8) UIntValue() uint8

UIntValue Returns the numeric value of this object

func (*UInt8) UnmarshalJSON

func (u *UInt8) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the encoding json interface.

func (UInt8) Value

func (u UInt8) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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