Documentation
¶
Index ¶
Constants ¶
View Source
const ( //EncryptMode is used to encrypt a password EncryptMode = "encrypt" //RunMode is used for executing a test RunMode = "run" //CreateMode is used for creating new objects like a masterkey CreateMode = "create" //Error this should never happen Error = "should never happen" )
Variables ¶
View Source
var MyFlagSet *flag.FlagSet
MyFlagSet contains the parsed arguemnts, will be set at the beginning.
Functions ¶
func Exit ¶
func Exit(info string)
ExitWithHelp prints the help, the info and exits the program with 999.
func ExitWithHelp ¶
func ExitWithHelp(info string)
ExitWithHelp prints the help, the info and exits the program with 999.
func PrintExampleUsage ¶ added in v1.0.4
func PrintExampleUsage()
func TestJavaHome ¶
TestJavaHome returns a string if the javahome is valid, an empty if not
Types ¶
type StringSlice ¶
type StringSlice []string
StringSlice is used for multiple string args
func (StringSlice) AddPrefix ¶
func (s StringSlice) AddPrefix(prefix string) StringSlice
AddPrefix adds a given Prefix to every element
func (*StringSlice) Set ¶
func (s *StringSlice) Set(value string) error
Set is for the flag.Var function
func (*StringSlice) String ¶
func (s *StringSlice) String() string
String is for the flag.Var function
Click to show internal directories.
Click to hide internal directories.