types

package
v0.0.0-...-b97b37b Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinStr

func JoinStr(strs []NullString, sep string) string

Types

type NullFloat64

type NullFloat64 struct {
	sql.NullFloat64
}

func NewNullFloat64

func NewNullFloat64(data float64, zeroNull bool) NullFloat64

func (*NullFloat64) IsZero

func (v *NullFloat64) IsZero() bool

func (*NullFloat64) MarshalJSON

func (v *NullFloat64) MarshalJSON() ([]byte, error)

func (*NullFloat64) SetZeroNoNull

func (v *NullFloat64) SetZeroNoNull()

func (*NullFloat64) SetZeroNull

func (v *NullFloat64) SetZeroNull()

func (*NullFloat64) UnmarshalJSON

func (v *NullFloat64) UnmarshalJSON(data []byte) error

type NullInt64

type NullInt64 struct {
	sql.NullInt64
}

func NewNullInt64

func NewNullInt64(data int64, zeroNull bool) NullInt64

func (*NullInt64) IsZero

func (v *NullInt64) IsZero() bool

func (*NullInt64) MarshalJSON

func (v *NullInt64) MarshalJSON() ([]byte, error)

func (*NullInt64) SetZeroNoNull

func (v *NullInt64) SetZeroNoNull()

func (*NullInt64) SetZeroNull

func (v *NullInt64) SetZeroNull()

func (*NullInt64) UnmarshalJSON

func (v *NullInt64) UnmarshalJSON(data []byte) error

type NullString

type NullString struct {
	sql.NullString
}

func NewNullString

func NewNullString(data string, emptyNull bool) NullString

func (*NullString) IsEmpty

func (v *NullString) IsEmpty() bool

func (*NullString) MarshalJSON

func (v *NullString) MarshalJSON() ([]byte, error)

func (*NullString) SetEmptyNoNull

func (v *NullString) SetEmptyNoNull()

func (*NullString) SetEmptyNull

func (v *NullString) SetEmptyNull()

func (*NullString) UnmarshalJSON

func (v *NullString) UnmarshalJSON(data []byte) error

type NullTime

type NullTime struct {
	mysql.NullTime
}

func NewNullTime

func NewNullTime(data time.Time) NullTime

func (*NullTime) MarshalJSON

func (v *NullTime) MarshalJSON() ([]byte, error)

func (*NullTime) UnmarshalJSON

func (v *NullTime) UnmarshalJSON(data []byte) (err error)

type Time

type Time time.Time

func (Time) MarshalJSON

func (t Time) MarshalJSON() ([]byte, error)

func (*Time) UnmarshalJSON

func (t *Time) UnmarshalJSON(data []byte) (err error)

Jump to

Keyboard shortcuts

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