Add support for maps.
This commit is contained in:
@@ -130,14 +130,6 @@ func parseTag(fv reflect.Value, ft reflect.StructField) *Tag {
|
||||
t.Hidden = t.Has("hidden")
|
||||
t.Format, _ = t.Get("format")
|
||||
t.Sep, _ = t.GetRune("sep")
|
||||
if t.Sep == 0 {
|
||||
if t.Cmd || t.Arg {
|
||||
t.Sep = ' '
|
||||
} else {
|
||||
t.Sep = ','
|
||||
}
|
||||
}
|
||||
|
||||
t.PlaceHolder, _ = t.Get("placeholder")
|
||||
if t.PlaceHolder == "" {
|
||||
t.PlaceHolder = strings.ToUpper(dashedString(fv.Type().Name()))
|
||||
|
||||
Reference in New Issue
Block a user