pointers

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package pointers provides helper functions to obtain pointers to basic primitive values. These utilities simplify working with optional or pointer based APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBool added in v0.1.3

func FromBool(value bool) *bool

FromBool returns a pointer to the provided bool value.

func FromFloat

func FromFloat(value float64) *float64

FromFloat returns a pointer to the provided float64 value.

func FromInt added in v0.1.3

func FromInt(value int) *int

FromInt returns a pointer to the provided int value.

func FromString added in v0.1.3

func FromString(value string) *string

FromString returns a pointer to the provided string value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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