Documentation ¶
Overview ¶
Package ptr provides functions that return pointers to values.
These functions can prove useful for APIs and structures where pointers are used to indicate a nullable value.
Almost all of the code in this package is automatically generated.
Index ¶
- func Bool(b bool) *bool
- func Byte(n byte) *byte
- func Float32(n float32) *float32
- func Float64(n float64) *float64
- func Int(n int) *int
- func Int16(n int16) *int16
- func Int32(n int32) *int32
- func Int64(n int64) *int64
- func Int8(n int8) *int8
- func String(s string) *string
- func Time(t time.Time) *time.Time
- func Uint(n uint) *uint
- func Uint16(n uint16) *uint16
- func Uint32(n uint32) *uint32
- func Uint64(n uint64) *uint64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package deref provides functions that safely dereferennce pointers.
|
Package deref provides functions that safely dereferennce pointers. |
Click to show internal directories.
Click to hide internal directories.