args.go
Function StringToMap
has 6 return statements (exceeds 4 allowed). Open
Open
func StringToMap(value string) (map[string]string, error) {
tokenizer := NewKeyValueTokenizer(value)
result := make(map[string]string)
var lvalue, rvalue, expression string
Function castStringSlice
has 5 return statements (exceeds 4 allowed). Open
Open
func castStringSlice(name string, dest interface{}, value interface{}) (interface{}, error) {
// If our destination is nil, init a new slice
if dest == nil {
dest = make([]string, 0)
}
Function castBool
has 5 return statements (exceeds 4 allowed). Open
Open
func castBool(name string, dest interface{}, value interface{}) (interface{}, error) {
// If value is nil, return the type default
if value == nil {
return false, nil
}
Function castStringMap
has 5 return statements (exceeds 4 allowed). Open
Open
func castStringMap(name string, dest interface{}, value interface{}) (interface{}, error) {
// If our destination is nil, init a new slice
if dest == nil {
dest = make(map[string]string, 0)
}