Discover Packages
github.com/ModelRocket/hiro
pkg
ptr
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Dec 28, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 1 module, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package ptr provides a set of SQL compatible pointer helpers
func Bool(s interface{}) *bool
Bool returns s safely as *bool
Duration converts t to a *time.Duration
func Int(i interface{}) *int
Int returns i safely as *int
func Int64(i interface{}) *int64
Int64 returns i safely as *int64
func NilString(s interface{}) *string
NilString returns s safely as *string
If string is empty "", nil is returned
func String(s interface{}) *string
String returns s safely as *string
Time converts t to a *time.Time
JSON is json pointer
MarshalJSON marshals the object to json
Scan reads a json value from the database into a Map
Value returns Map as a value that can be stored as json in the database
Pointers provides casting and de-referencing support for scalar values
Pointer returns a new Pointers for the value
Source Files
¶
Click to show internal directories.
Click to hide internal directories.