Better name for parseCSV -> parseTagItems

This commit is contained in:
Gerald Kaszuba
2018-06-01 11:33:33 +10:00
committed by Alec Thomas
parent ed123d1c06
commit 254fa00e81
+2 -2
View File
@@ -33,7 +33,7 @@ type tagChars struct {
var kongChars = tagChars{sep: ',', quote: '\'', assign: '='}
var bareChars = tagChars{sep: ' ', quote: '"', assign: ':'}
func parseCSV(s string, chr tagChars) map[string]string {
func parseTagItems(s string, chr tagChars) map[string]string {
d := map[string]string{}
key := []rune{}
value := []rune{}
@@ -115,7 +115,7 @@ func parseTag(fv reflect.Value, ft reflect.StructField) *Tag {
return t
}
t.items = parseCSV(s, chars)
t.items = parseTagItems(s, chars)
t.Cmd = t.Has("cmd")
t.Arg = t.Has("arg")