pointer

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Overview

Package pointer provides helper functions for creating pointers of values and retrieving values of pointers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v bool) *bool

Bool converts bool value to pointer

func BoolVal

func BoolVal(p *bool) bool

BoolVal converts bool pointer to value with zero-value when nil

func Float32

func Float32(v float32) *float32

Float32 converts float32 value to pointer

func Float32Val

func Float32Val(p *float32) float32

Float32Val converts float32 pointer to value with zero-value when nil

func Float64

func Float64(v float64) *float64

Float64 converts float64 value to pointer

func Float64Val

func Float64Val(p *float64) float64

Float64Val converts float64 pointer to value with zero-value when nil

func Int

func Int(v int) *int

Int converts int value to pointer

func IntVal

func IntVal(p *int) int

IntVal converts int pointer to value with zero-value when nil

func String

func String(v string) *string

String converts string value to pointer

func StringVal

func StringVal(p *string) string

StringVal converts string pointer to value with zero-value when nil

func UInt

func UInt(v uint) *uint

UInt converts uint value to pointer

func UIntVal

func UIntVal(p *uint) uint

UIntVal converts uint pointer to value with zero-value when nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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