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

to

package
v0.81.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: MIT Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b *bool) bool

Bool returns a bool value for the passed bool pointer. It returns false if the pointer is nil.

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to a bool

func Float64

func Float64(i *float64) float64

Float64 returns an int value for the passed int pointer. It returns 0.0 if the pointer is nil.

func Float64Ptr

func Float64Ptr(i float64) *float64

Float64Ptr returns a pointer to a float64

func Int

func Int(i *int) int

Int returns an int value for the passed int pointer. It returns 0 if the pointer is nil.

func Int32

func Int32(i *int32) int32

Int32 returns an int value for the passed int pointer. It returns 0 if the pointer is nil.

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr returns a pointer to a int32

func Int64

func Int64(i *int64) int64

Int64 returns an int value for the passed int pointer. It returns 0 if the pointer is nil.

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to a int64

func IntPtr

func IntPtr(i int) *int

IntPtr returns a pointer to a int

func IsFalseBoolPointer

func IsFalseBoolPointer(b *bool) bool

IsFalseBoolPointer is a simple boolean helper function for boolean pointers

func IsTrueBoolPointer

func IsTrueBoolPointer(b *bool) bool

IsTrueBoolPointer is a simple boolean helper function for boolean pointers

func String

func String(s *string) string

String returns a string value for the passed string pointer. It returns the empty string if the pointer is nil.

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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