typex

package
v1.3.69 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolToInt64

func BoolToInt64(value bool) int64

ConvertBoolToInt64 bool转整形

func BoolToNullBool added in v1.2.88

func BoolToNullBool(v bool) sql.NullBool

func Int64ToBool

func Int64ToBool(value int64) bool

func NullBoolToBool added in v1.2.88

func NullBoolToBool(v sql.NullBool) bool

func NullBoolToPtrBool added in v1.2.88

func NullBoolToPtrBool(v sql.NullBool) *bool

func NullInt64ToInt64

func NullInt64ToInt64(value sql.NullInt64) int64

func NullInt64ToPtrInt64 added in v1.2.88

func NullInt64ToPtrInt64(v sql.NullInt64) *int64

func NullStringToPtrStr added in v1.3.1

func NullStringToPtrStr(v sql.NullString) *string

func NullStringToStr added in v1.3.1

func NullStringToStr(value sql.NullString) string

func NullTimeToPtrUnix added in v1.2.88

func NullTimeToPtrUnix(t sql.NullTime) *int64

func NullTimeToUnix

func NullTimeToUnix(value sql.NullTime) int64

func PtrBoolToNullBool added in v1.2.88

func PtrBoolToNullBool(value *bool) sql.NullBool

func PtrIntToNullInt64 added in v1.2.88

func PtrIntToNullInt64[I ~int | ~int64 | ~int8 | ~int32 | ~int16](value *I) sql.NullInt64

func PtrStrToNullString added in v1.3.1

func PtrStrToNullString(value *string) sql.NullString

func PtrUnixToNullTime added in v1.2.88

func PtrUnixToNullTime(t *int64, nsec int64) sql.NullTime

func StrToNullString added in v1.3.1

func StrToNullString(value string) sql.NullString

func ValueToPtr

func ValueToPtr[T ~int | ~int8 | ~int16 | ~int32 | ~int64 | string | bool](t T) *T

Types

This section is empty.

Jump to

Keyboard shortcuts

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