ptr

package
v0.4.9-beta.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Pointer and value conversion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr added in v0.2.5

func BoolPtr(v bool) *bool

func BoolVal

func BoolVal(p *bool) bool

func FloatVal

func FloatVal(p *float64) float64

func IntPtr added in v0.2.5

func IntPtr(v int) *int

func IntVal

func IntVal(p *int) int

func PtrVal

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

func StrPtr added in v0.2.5

func StrPtr(v string) *string

func StrVal

func StrVal(p *string) string

func ValPtr added in v0.2.12

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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