github.com/googollee/clic@v0.1.5/source/source_fields_test.go (about) 1 package source 2 3 import ( 4 "reflect" 5 6 "github.com/googollee/clic/structtags" 7 ) 8 9 var ( 10 a1, a2, a3 string 11 12 fields = []structtags.Field{ 13 {Name: []string{"a1"}, Description: "a1", Parser: parserString, Value: reflect.ValueOf(&a1).Elem()}, 14 {Name: []string{"l1", "a2"}, Description: "a2", Parser: parserString, Value: reflect.ValueOf(&a2).Elem()}, 15 {Name: []string{"l2", "l3", "a3"}, Description: "a3", Parser: parserString, Value: reflect.ValueOf(&a3).Elem()}, 16 } 17 )