ptr

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

func GetBool

func GetBool(v *bool) bool

func GetNumber

func GetNumber[T N](v *T) T

func GetStr added in v0.0.3

func GetStr(v *string) string

func Number

func Number[T N](v T) *T

func Str

func Str(v string) *string

func StrTrim

func StrTrim(v *string) *string

Types

type N

type N interface {
	uint8 | int8 | uint16 | int16 | uint32 | int32 | uint64 | int64 | uint | int | float32 | float64
}

Jump to

Keyboard shortcuts

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