pointer

package
v1.29.0-mobile.2 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2018 License: BSD-2-Clause Imports: 1 Imported by: 16

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneBool added in v1.27.0

func CloneBool(source *bool) *bool

func CloneDuration added in v1.27.0

func CloneDuration(source *time.Duration) *time.Duration

func CloneFloat64 added in v1.27.0

func CloneFloat64(source *float64) *float64

func CloneInt added in v1.27.0

func CloneInt(source *int) *int

func CloneString added in v1.27.0

func CloneString(source *string) *string

func CloneStringArray added in v1.27.0

func CloneStringArray(source *[]string) *[]string

func CloneTime added in v1.27.0

func CloneTime(source *time.Time) *time.Time

func DefaultBool added in v1.27.0

func DefaultBool(value *bool, defaultValue bool) *bool

func DefaultDuration added in v1.27.0

func DefaultDuration(value *time.Duration, defaultValue time.Duration) *time.Duration

func DefaultFloat64 added in v1.27.0

func DefaultFloat64(value *float64, defaultValue float64) *float64

func DefaultInt added in v1.27.0

func DefaultInt(value *int, defaultValue int) *int

func DefaultString added in v1.27.0

func DefaultString(value *string, defaultValue string) *string

func DefaultStringArray added in v1.27.0

func DefaultStringArray(value *[]string, defaultValue []string) *[]string

func DefaultTime added in v1.27.0

func DefaultTime(value *time.Time, defaultValue time.Time) *time.Time

func FromBool added in v1.27.0

func FromBool(value bool) *bool

func FromDuration added in v1.27.0

func FromDuration(value time.Duration) *time.Duration

func FromFloat64 added in v1.27.0

func FromFloat64(value float64) *float64

func FromInt added in v1.27.0

func FromInt(value int) *int

func FromString added in v1.27.0

func FromString(value string) *string

func FromStringArray added in v1.27.0

func FromStringArray(value []string) *[]string

func FromTime added in v1.27.0

func FromTime(value time.Time) *time.Time

func ToBool added in v1.27.0

func ToBool(ptr *bool) bool

func ToDuration added in v1.27.0

func ToDuration(ptr *time.Duration) time.Duration

func ToFloat64 added in v1.27.0

func ToFloat64(ptr *float64) float64

func ToInt added in v1.27.0

func ToInt(ptr *int) int

func ToString added in v1.27.0

func ToString(ptr *string) string

func ToStringArray added in v1.27.0

func ToStringArray(ptr *[]string) []string

func ToTime added in v1.27.0

func ToTime(ptr *time.Time) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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