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

ptrconv

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v *bool) bool

Bool returns false when the pointer is nil.

func Float64

func Float64(v *float64) float64

Float64 returns 0 when the pointer is nil.

func Int64

func Int64(v *int64) int64

Int64 returns 0 when the pointer is nil.

func Int64FromAny

func Int64FromAny(v any) *int64

Int64FromAny converts common numeric inputs to *int64.

func NilIfEmpty

func NilIfEmpty(s string) *string

NilIfEmpty returns nil for empty strings, otherwise the string pointer.

func String

func String(v *string) string

String returns an empty string when the pointer is nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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