safe

package
v0.0.0-...-c78e9a6 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: LGPL-2.1 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTimeUnix

func GetTimeUnix(source *time.Time) *int64

func GetTimeUnixMilli

func GetTimeUnixMilli(source *time.Time) *int64

func GetVal

func GetVal[T any](source *T, fallbackValue T) T

func Indirect

func Indirect[TIn any, TOut any](srcPtr *TIn, fn func(src TIn) *TOut) *TOut

func SetDefaultStr

func SetDefaultStr[T string](target *T, defaultValue T)

func SetDefaultValue

func SetDefaultValue[T any](target **T, defaultValue T)

if target is nil, set it to defaultValue target must keep the value when this function is returned

Types

This section is empty.

Jump to

Keyboard shortcuts

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