ptrconv

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: MIT Imports: 0 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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