Help us shape the future of Go! Take the 2026 Go Developer Survey

pointer

package module
v0.84.3 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: Apache-2.0 Imports: 0 Imported by: 4

Documentation

Overview

Package pointer provides helper function to interact with pointers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ptr

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

Ptr returns a pointer from a value. It will allocate a new heap object for it.

func UIntPtrToFloatPtr

func UIntPtrToFloatPtr(u *uint64) *float64

UIntPtrToFloatPtr converts a uint64 value to float64 and returns a pointer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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