shared

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagPrefix         = "--"
	FlagValueSeparator = "="
)

Flag constants

Variables

This section is empty.

Functions

func GetCommandArgument

func GetCommandArgument() string

GetCommandArgument Gets the command argument for the software

func GetFlagArrayValue

func GetFlagArrayValue(flag string) []string

GetFlagArrayValue Gets a array of values of a flag from the command line arguments

func GetFlagSwitch

func GetFlagSwitch(flag string, defaultValue bool) bool

GetFlagSwitch Gets a switch value of a flag from the command line arguments

func GetFlagValue

func GetFlagValue(flag string, defaultValue string) string

GetFlagValue Gets a value of a flag from the command line arguments

func GetModuleArgument

func GetModuleArgument() string

GetModuleArgument Gets the module argument for the software

func MapFlagValue

func MapFlagValue(flag string) (string, string)

MapFlagValue Maps Keypair values from the flag

Types

This section is empty.

Jump to

Keyboard shortcuts

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