
The highest tagged major version is
v2.
package
Version:
v1.3.8
Opens a new window with list of versions in this module.
Published: Mar 29, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package ptr provides some helpers for converting types to pointers
func Bool(val interface{}, def ...bool) *bool
Bool returns a bool pointer
Duration is a safe time.Duration pointer wrapper
func Float64(val interface{}) *float64
Float64 is a safe float64 pointer wrapper
func Int64(val interface{}) *int64
Int64 is a safe int64 pointer wrapper
func String(val interface{}) *string
String is a safe string pointer wrapper
Source Files
¶
Click to show internal directories.
Click to hide internal directories.