Don't output on 'set'

This commit is contained in:
Neil Alexander 2019-02-11 20:03:31 +00:00
parent 1072012eed
commit 83544a9b29
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -139,9 +139,6 @@ func main() {
case "set":
name := flags[len(flags)-2:][0]
value := flags[len(flags)-1:][0]
fmt.Println(name, value, item)
switch item.Kind() {
case reflect.Struct:
field := item.FieldByName(name)