ptr

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package ptr provides helper functions to get pointers to basic types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

func Float32Ptr

func Float32Ptr(f float32) *float32

func Float64Ptr

func Float64Ptr(f float64) *float64

func Int8Ptr

func Int8Ptr(i int8) *int8

func Int16Ptr

func Int16Ptr(i int16) *int16

func Int32Ptr

func Int32Ptr(i int32) *int32

func Int64Ptr

func Int64Ptr(i int64) *int64

func IntPtr

func IntPtr(i int) *int

func StringPtr

func StringPtr(s string) *string

func Uint8Ptr

func Uint8Ptr(i uint8) *uint8

func Uint16Ptr

func Uint16Ptr(i uint16) *uint16

func Uint32Ptr

func Uint32Ptr(i uint32) *uint32

func Uint64Ptr

func Uint64Ptr(i uint64) *uint64

func UintPtr

func UintPtr(i uint) *uint

Types

This section is empty.

Jump to

Keyboard shortcuts

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