package utils
import "github.com/mooltiverse/nyx/src/go/utils"
This package provides simple utils used as code and time savers within the Nyx project.
Index ¶
- func PointerToBoolean(b bool) *bool
- func PointerToInt(i int) *int
- func PointerToInt64(i int64) *int64
- func PointerToString(s string) *string
Functions ¶
func PointerToBoolean ¶
Returns a pointer to the boolean passed as parameter.
This is useful for inline assignment of a constant boolean value.
func PointerToInt ¶
Returns a pointer to the int passed as parameter.
This is useful for inline assignment of a constant int value.
func PointerToInt64 ¶
Returns a pointer to the int passed as parameter.
This is useful for inline assignment of a constant int value.
func PointerToString ¶
Returns a pointer to the string passed as parameter.
This is useful for inline assignment of a constant string value.
Source Files ¶
- Version
- v0.0.0-20250213092846-5c6c0e6e1834 (latest)
- Published
- Feb 13, 2025
- Platform
- linux/amd64
- Last checked
- 1 month ago –
Tools for package owners.