Documentation
¶
Index ¶
- func Bool(b bool) *bool
- func Duration(d time.Duration) *time.Duration
- func False() *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int32(i int32) *int32
- func Int64(i int64) *int64
- func Int64ToInt(i *int64) *int
- func IntToInt64(i *int) *int64
- func Ptr[T any](v T) *T
- func Rune(r rune) *rune
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func True() *bool
- func Uint8(u uint8) *uint8
- func Uint16(u uint16) *uint16
- func Uint32(u uint32) *uint32
- func Uint64(u uint64) *uint64
- func Value[T any](p *T) T
- func ValueOrDefault[T any](p *T, defaultValue T) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Int64ToInt ¶
func IntToInt64 ¶
func Value ¶
func Value[T any](p *T) T
Value returns a value behind the pointer or the zero value when the pointer is nil.
func ValueOrDefault ¶
func ValueOrDefault[T any](p *T, defaultValue T) T
ValueOrDefault returns a value behind the pointer or the default value when the pointer is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.