ref

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsStr deprecated

func AsStr(input *string) string

Deprecated: AsStr is deprecated. Use `Value` instead.

func Bool deprecated

func Bool(input bool) *bool

Deprecated: Bool is deprecated. Use `Of` instead.

func Float64 deprecated

func Float64(input float64) *float64

Deprecated: Float64 is deprecated. Use `Of` instead.

func Of added in v0.10.1

func Of[T any](input T) *T

Of returns a reference pointer of the @input

func Str deprecated

func Str(input string) *string

Deprecated: Str is deprecated. Use `Of` instead.

func Time deprecated

func Time(input time.Time) *time.Time

Deprecated: Time is deprecated. Use `Of` instead.

func UInt64 deprecated

func UInt64(input uint64) *uint64

Deprecated: UInt64 is deprecated. Use `Of` instead.

func Value added in v0.10.1

func Value[T any](value *T) T

Value returns a value of the @input type. It the @input is nil, it returns the zero value of the type

Types

This section is empty.

Jump to

Keyboard shortcuts

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