package
module
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 14, 2021
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
gopointer
A utility to allow one-line creation of pointer of primitive values.
Example:
strPtr := gopointer.OfString("a string")
Documentation
¶
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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.