flags

package
v0.0.0-...-499b85e Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 0 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OverrideDefaultBool

func OverrideDefaultBool(v, def bool) bool

OverrideDefaultBool checks whether the default value of v is the zero value, if so, ensure the flag has a correct value by providing one. A value different than zero would mean that it was read from a config file either from an extension or from a higher source (i.e: ocis command).

func OverrideDefaultInt

func OverrideDefaultInt(v, def int) int

OverrideDefaultInt checks whether the default value of v is the zero value, if so, ensure the flag has a correct value by providing one. A value different than zero would mean that it was read from a config file either from an extension or from a higher source (i.e: ocis command).

func OverrideDefaultInt64

func OverrideDefaultInt64(v, def int64) int64

OverrideDefaultInt64 checks whether the default value of v is the zero value, if so, ensure the flag has a correct value by providing one. A value different than zero would mean that it was read from a config file either from an extension or from a higher source (i.e: ocis command).

func OverrideDefaultString

func OverrideDefaultString(v, def string) string

OverrideDefaultString checks whether the default value of v is the zero value, if so, ensure the flag has a correct value by providing one. A value different than zero would mean that it was read from a config file either from an extension or from a higher source (i.e: ocis command).

func OverrideDefaultUint64

func OverrideDefaultUint64(v, def uint64) uint64

OverrideDefaultUint64 checks whether the default value of v is the zero value, if so, ensure the flag has a correct value by providing one. A value different than zero would mean that it was read from a config file either from an extension or from a higher source (i.e: ocis command).

Types

This section is empty.

Jump to

Keyboard shortcuts

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