ptr

package
v0.0.0-...-08046e1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DerefStr

func DerefStr(strPtr *string, defaultValue string) string

DerefStr returns `*strPtr` if `strPtr` is non-nil. Otherwise it returns `defaultValue`.

func False

func False() *bool

False returns a pointer to a false bool

func Float64

func Float64(n float64) *float64

Float64 returns a pointer to a float64

func Int

func Int(n int) *int

Int returns a pointer to an int

func Int64

func Int64(n int64) *int64

Int64 returns a pointer to an int64

func Str

func Str(str string) *string

Str returns a pointer to a string

func True

func True() *bool

True returns a pointer to a true bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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