Categorygithub.com/gmm1900/gopointer
modulepackage
1.0.0
Repository: https://github.com/gmm1900/gopointer.git
Documentation: pkg.go.dev

# README

gopointer

A utility to allow one-line creation of pointer of primitive values.

Example:

    strPtr := gopointer.OfString("a string")

# Functions

OfBool returns the pointer to the given bool.
OfFloat32 returns the pointer to the given float32.
OfFloat64 returns the pointer to the given float64.
OfInt returns the pointer to the given int.
OfInt64 returns the pointer to the given int64.
OfNilJSON returns the pointer to a nil JSON bytes.
OfNilTime returns nil value of the *time.Time type.
OfString returns the pointer to the given string.
OfTime returns the pointer to the given time.