From 6bd7d2516c4e9ed4e8dc1cdbe716998dd41cc89d Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Fri, 23 Jan 2015 12:56:07 +0700 Subject: [PATCH] Fix matching --- config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()