opt

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(v *bool) bool

Bool returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Float32

func Float32(v *float32) float32

Float32 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Float64

func Float64(v *float64) float64

Float64 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Int

func Int(v *int) int

Int returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Int16

func Int16(v *int16) int16

Int16 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Int32

func Int32(v *int32) int32

Int32 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Int64

func Int64(v *int64) int64

Int64 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Int8

func Int8(v *int8) int8

Int8 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func NewBool

func NewBool(v bool) *bool

NewBool produces a pointer to the given primitive value

func NewFloat32

func NewFloat32(v float32) *float32

NewFloat32 produces a pointer to the given primitive value

func NewFloat64

func NewFloat64(v float64) *float64

NewFloat64 produces a pointer to the given primitive value

func NewInt

func NewInt(v int) *int

NewInt produces a pointer to the given primitive value

func NewInt16

func NewInt16(v int16) *int16

NewInt16 produces a pointer to the given primitive value

func NewInt32

func NewInt32(v int32) *int32

NewInt32 produces a pointer to the given primitive value

func NewInt64

func NewInt64(v int64) *int64

NewInt64 produces a pointer to the given primitive value

func NewInt8

func NewInt8(v int8) *int8

NewInt8 produces a pointer to the given primitive value

func NewString

func NewString(v string) *string

NewString produces a pointer to the given primitive value

func NewUInt16

func NewUInt16(v uint16) *uint16

NewUInt16 produces a pointer to the given primitive value

func NewUInt32

func NewUInt32(v uint32) *uint32

NewUInt32 produces a pointer to the given primitive value

func NewUInt64

func NewUInt64(v uint64) *uint64

NewUInt64 produces a pointer to the given primitive value

func NewUInt8

func NewUInt8(v uint8) *uint8

NewUInt8 produces a pointer to the given primitive value

func NewUint

func NewUint(v uint) *uint

NewUint produces a pointer to the given primitive value

func String

func String(v *string) string

String returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func UInt16

func UInt16(v *uint16) uint16

UInt16 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func UInt32

func UInt32(v *uint32) uint32

UInt32 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func UInt64

func UInt64(v *uint64) uint64

UInt64 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func UInt8

func UInt8(v *uint8) uint8

UInt8 returns the underlying value of the given pointer or if that pointer is `nil` a zero value

func Uint

func Uint(v *uint) uint

Uint returns the underlying value of the given pointer or if that pointer is `nil` a zero value

Types

This section is empty.

Jump to

Keyboard shortcuts

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