pointerx

package
v0.0.677 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 0 Imported by: 29

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v0.0.46

func Bool(s bool) *bool

Bool returns the input value's pointer. Deprecated: use Ptr instead.

func BoolR added in v0.0.46

func BoolR(s *bool) bool

BoolR is the reverse to Bool. Deprecated: use Deref instead.

func Deref added in v0.0.495

func Deref[T any](p *T) T

Deref returns the input values de-referenced value, or zero value if nil.

func Float32

func Float32(s float32) *float32

Float32 returns the input value's pointer. Deprecated: use Ptr instead.

func Float32R added in v0.0.46

func Float32R(s *float32) float32

Float32R is the reverse to Float32. Deprecated: use Deref instead.

func Float64

func Float64(s float64) *float64

Float64 returns the input value's pointer. Deprecated: use Ptr instead.

func Float64R added in v0.0.46

func Float64R(s *float64) float64

Float64R is the reverse to Float64. Deprecated: use Deref instead.

func Int

func Int(s int) *int

Int returns the input value's pointer. Deprecated: use Ptr instead.

func Int32

func Int32(s int32) *int32

Int32 returns the input value's pointer. Deprecated: use Ptr instead.

func Int32R added in v0.0.46

func Int32R(s *int32) int32

Int32R is the reverse to Int32. Deprecated: use Deref instead.

func Int64

func Int64(s int64) *int64

Int64 returns the input value's pointer. Deprecated: use Ptr instead.

func Int64R added in v0.0.46

func Int64R(s *int64) int64

Int64R is the reverse to Int64. Deprecated: use Deref instead.

func IntR added in v0.0.46

func IntR(s *int) int

IntR is the reverse to Int. Deprecated: use Deref instead.

func Ptr added in v0.0.495

func Ptr[T any](v T) *T

Ptr returns the input value's pointer.

func String

func String(s string) *string

String returns the input value's pointer. Deprecated: use Ptr instead.

func StringR added in v0.0.46

func StringR(s *string) string

StringR is the reverse to String. Deprecated: use Deref instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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