pointer

package
v2.4.1+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 30, 2019 License: Apache-2.0 Imports: 3 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b bool) *bool

Bool returns a pointer to a bool

func Duration

func Duration(d time.Duration) *time.Duration

Duration returns a pointer to a time.Duration

func FillDefaultFrom

func FillDefaultFrom(defaultsList ...interface{}) interface{}

FillDefaultFrom fills default values replacing nil values with the first non nil. The replacement goes into existing

func Float32

func Float32(f float32) *float32

Float32 returns a pointer to a float32

func Float64

func Float64(b float64) *float64

Float64 returns a pointer to a float64

func Int

func Int(i int) *int

Int returns a pointer to an int

func Int32

func Int32(i int32) *int32

Int32 returns a pointer to an int32

func Int64

func Int64(i int64) *int64

Int64 returns a pointer to an int64

func String

func String(i string) *string

String returns a pointer to a string

func Uint

func Uint(i uint) *uint

Uint returns a pointer to a uint

func Uint16

func Uint16(i uint16) *uint16

Uint16 returns a pointer to a uint16

func Uint32

func Uint32(i uint32) *uint32

Uint32 returns a pointer to a uint32

func Uint64

func Uint64(i uint64) *uint64

Uint64 returns a pointer to a uint64

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL