defaults

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float

func Float(data float64, value float64) float64

Float checks if data is nil, returns value instead

func ForceBool

func ForceBool(key interface{}) bool

func ForceInt

func ForceInt(key interface{}) int

func Int

func Int(data int, value int) int

Int checks if data is nil, returns value instead

func String

func String(data string, value string) string

String checks if data is nil, returns value instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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