pointer

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreBoolsEqual added in v0.18.0

func AreBoolsEqual(v1 *bool, v2 *bool) bool

func AreDurationsEqual added in v0.18.0

func AreDurationsEqual(v1 *time.Duration, v2 *time.Duration) bool

func AreFloat32sEqual added in v0.18.0

func AreFloat32sEqual(v1 *float32, v2 *float32) bool

func AreFloat64sEqual added in v0.18.0

func AreFloat64sEqual(v1 *float64, v2 *float64) bool

func AreInt16sEqual added in v0.18.0

func AreInt16sEqual(v1 *int16, v2 *int16) bool

func AreInt32sEqual added in v0.18.0

func AreInt32sEqual(v1 *int32, v2 *int32) bool

func AreInt64sEqual added in v0.18.0

func AreInt64sEqual(v1 *int64, v2 *int64) bool

func AreInt8sEqual added in v0.18.0

func AreInt8sEqual(v1 *int8, v2 *int8) bool

func AreIntsEqual added in v0.18.0

func AreIntsEqual(v1 *int, v2 *int) bool

func AreStringsEqual added in v0.18.0

func AreStringsEqual(v1 *string, v2 *string) bool

func AreTimesEqual added in v0.18.0

func AreTimesEqual(v1 *time.Time, v2 *time.Time) bool

func Bool

func Bool(val bool) *bool

func Duration added in v0.14.0

func Duration(val time.Duration) *time.Duration

func Float32

func Float32(val float32) *float32

func Float64

func Float64(val float64) *float64

func IndirectSafe

func IndirectSafe(obj interface{}) interface{}

IndirectSafe dereferences if obj is a pointer, otherwise no-op

func Int

func Int(val int) *int

func Int16

func Int16(val int16) *int16

func Int32

func Int32(val int32) *int32

func Int64

func Int64(val int64) *int64

func Int8

func Int8(val int8) *int8

func String

func String(val string) *string

func Time

func Time(val 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