utils – github.com/mooltiverse/nyx/src/go/utils Index | Files

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

Functions

func PointerToBoolean

func PointerToBoolean(b bool) *bool

Returns a pointer to the boolean passed as parameter.

This is useful for inline assignment of a constant boolean value.

func PointerToInt

func PointerToInt(i int) *int

Returns a pointer to the int passed as parameter.

This is useful for inline assignment of a constant int value.

func PointerToInt64

func PointerToInt64(i int64) *int64

Returns a pointer to the int passed as parameter.

This is useful for inline assignment of a constant int value.

func PointerToString

func PointerToString(s string) *string

Returns a pointer to the string passed as parameter.

This is useful for inline assignment of a constant string value.

Source Files

utils.go

Version
v0.0.0-20250213092846-5c6c0e6e1834 (latest)
Published
Feb 13, 2025
Platform
linux/amd64
Last checked
1 month ago

Tools for package owners.