Documentation ¶
Index ¶
- Constants
- func Contains(arr []string, s string) bool
- func DecodeArgs(s string) ([]string, error)
- func DedupStrArr(arr []string) []string
- func EncodeArgs(args []string) string
- func FindStrArr(arr []string, s string) bool
- func ParseBoolArg(s string) (bool, error)
- func ValidateArg(rules map[string]*ArgRule, k string, v []string) error
- type ArgRule
Constants ¶
View Source
const ( // ReplErrStr represents error replacement string. ReplErrStr string = "ERROR_REPLACEMENT" )
Variables ¶
This section is empty.
Functions ¶
func DecodeArgs ¶
DecodeArgs decode arguments from string.
func DedupStrArr ¶
DedupStrArr returns deduplicated string array.
func FindStrArr ¶
FindStrArr returns true if a string found in a slice.
func ParseBoolArg ¶
ParseBoolArg converts string to boolean.
Types ¶
Click to show internal directories.
Click to hide internal directories.