From 463bdc838f2b35e9307e91d480878bda5fff7232 Mon Sep 17 00:00:00 2001 From: spf13 Date: Fri, 11 Jul 2014 10:25:27 -0400 Subject: Adding Type() method to the values. --- string.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'string.go') diff --git a/string.go b/string.go index 65c0cb7..362fbf8 100644 --- a/string.go +++ b/string.go @@ -14,6 +14,9 @@ func (s *stringValue) Set(val string) error { *s = stringValue(val) return nil } +func (s *stringValue) Type() string { + return "string" +} func (s *stringValue) String() string { return fmt.Sprintf("%s", *s) } -- cgit v1.2.3