This commit is contained in:
sentriz
2020-05-23 12:02:11 +01:00
committed by Senan Kelly
parent b8ed413ed3
commit 9ed336242d
2 changed files with 2 additions and 4 deletions

View File

@@ -50,6 +50,7 @@ func parse(values []string, i interface{}) error {
}
var err error
switch v := i.(type) {
// ** begin *T
case *string:
*v, err = parseStr(values[0])
case *int:
@@ -58,6 +59,7 @@ func parse(values []string, i interface{}) error {
*v, err = parseID(values[0])
case *bool:
*v, err = parseBool(values[0])
// ** begin *[]T
case *[]string:
for _, value := range values {
parsed, err := parseStr(value)