ptr

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

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

Ptr returns a pointer address of given value

func StringPtrOrNil

func StringPtrOrNil[T ~string](v *T) *string

StringPtrOrNil converts a pointer of any string-like type to a pointer of string type.

func Value

func Value[V any](v *V) V

Value returns a value of given pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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