summaryrefslogtreecommitdiffstats
path: root/tpl/compare/compare.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/compare/compare.go')
-rw-r--r--tpl/compare/compare.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tpl/compare/compare.go b/tpl/compare/compare.go
index e005aff06..50dafae3c 100644
--- a/tpl/compare/compare.go
+++ b/tpl/compare/compare.go
@@ -111,6 +111,8 @@ func (n *Namespace) Eq(first interface{}, others ...interface{}) bool {
return vv.Float()
case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64:
return vv.Uint()
+ case reflect.String:
+ return vv.String()
default:
return v
}