putil

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckNotFound

func CheckNotFound(err error) error

func DerefOrEmpty

func DerefOrEmpty[T any](val *T) T

func IsNotNil

func IsNotNil[T any](val *T) bool

func Null

func Null[T any](a *T) *sql.Null[T]

func NullFloat64

func NullFloat64(f *float32) *float64

func NullInt64

func NullInt64(i *int32) *int64

func NullLike

func NullLike(s *string) *string

func NullTimestamp

func NullTimestamp(ts *timestamppb.Timestamp) *time.Time

func ToPointer

func ToPointer[T any](val 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