val

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2020 License: Apache-2.0 Imports: 0 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(p *bool) bool

Bool returns a bool value of p or false when p is nil

func Float32

func Float32(p *float32) float32

Float32 returns a float32 value of p or 0 when p is nil

func Float64

func Float64(p *float64) float64

Float64 returns a float64 value of p or 0 when p is nil

func Int

func Int(p *int) int

Int returns an int value of p or 0 when p is nil

func Int16

func Int16(p *int16) int16

Int16 returns an int16 value of p or 0 when p is nil

func Int32

func Int32(p *int32) int32

Int32 returns an int32 value of p or 0 when p is nil

func Int64

func Int64(p *int64) int64

Int64 returns an int64 value of p or 0 when p is nil

func Int8

func Int8(p *int8) int8

Int8 returns an int8 value of p or 0 when p is nil

func String

func String(p *string) string

String returns a string value of p or "" when p is nil

func Uint

func Uint(p *uint) uint

Uint returns an uint value of p or 0 when p is nil

func Uint16

func Uint16(p *uint16) uint16

Uint16 returns an uint16 value of p or 0 when p is nil

func Uint32

func Uint32(p *uint32) uint32

Uint32 returns an uint32 value of p or 0 when p is nil

func Uint64

func Uint64(p *uint64) uint64

Uint64 returns an uint64 value of p or 0 when p is nil

func Uint8

func Uint8(p *uint8) uint8

Uint8 returns an uint8 value of p or 0 when p is nil

Types

This section is empty.

Jump to

Keyboard shortcuts

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