package
Version:
v1.1.24
Opens a new window with list of versions in this module.
Published: Aug 1, 2025
License: Apache-2.0, MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NilIfZero(input int) *int
NilIfZero converts a int to an int pointer, retuning nil if the input is 0
func ZeroIfNil(input *int) int
ZeroIfNil converts a int pointer to an int, retuning 0 if the input is nil
Source Files
¶
Click to show internal directories.
Click to hide internal directories.