conditional

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2021 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(
	isTrue bool,
	value, defaultVal bool,
) bool

func Bools added in v0.0.8

func Bools(
	isTrue bool,
	value, defaultVal []bool,
) []bool

func BoolsPtr added in v0.0.8

func BoolsPtr(
	isTrue bool,
	value, defaultVal *[]bool,
) *[]bool

func Byte

func Byte(
	isTrue bool,
	value, defaultVal byte,
) byte

func Bytes added in v0.0.8

func Bytes(
	isTrue bool,
	value, defaultVal []byte,
) []byte

func BytesPtr added in v0.0.8

func BytesPtr(
	isTrue bool,
	value, defaultVal *[]byte,
) *[]byte

func Int

func Int(
	isTrue bool,
	value, defaultVal int,
) int

func Interface

func Interface(
	isTrue bool,
	value, defaultVal interface{},
) interface{}

func Interfaces added in v0.0.8

func Interfaces(
	isTrue bool,
	value, defaultVal []interface{},
) []interface{}

func InterfacesPtr added in v0.0.8

func InterfacesPtr(
	isTrue bool,
	value, defaultVal *[]interface{},
) *[]interface{}

func Ints added in v0.0.8

func Ints(
	isTrue bool,
	value, defaultVal []int,
) []int

func IntsPtr added in v0.0.8

func IntsPtr(
	isTrue bool,
	value, defaultVal *[]int,
) *[]int

func Setter added in v0.0.8

func Setter(
	isTrue bool,
	value, defaultVal issetter.Value,
) interface{}

func String

func String(
	isTrue bool,
	value, defaultVal string,
) string

func StringPtr

func StringPtr(
	isTrue bool,
	value, defaultVal *string,
) *string

func Strings added in v0.0.8

func Strings(
	isTrue bool,
	value, defaultVal []string,
) []string

func StringsPtr added in v0.0.8

func StringsPtr(
	isTrue bool,
	value, defaultVal *[]string,
) *[]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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