diff --git a/config.go b/config.go index d5e1b80..b9062f6 100644 --- a/config.go +++ b/config.go @@ -86,7 +86,7 @@ loop_over_fields: } ) - if title != "" || len(attrs) == 0 || len(options) == 0 { + if title != "" || len(attrs) > 0 || len(options) > 0 { // Substitute field name for title if none set if kind != reflect.Struct { cf.Value = val.Interface()