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. --- int32.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'int32.go') diff --git a/int32.go b/int32.go index 2e1a317..18eaacd 100644 --- a/int32.go +++ b/int32.go @@ -19,6 +19,10 @@ func (i *int32Value) Set(s string) error { return err } +func (i *int32Value) Type() string { + return "int32" +} + func (i *int32Value) String() string { return fmt.Sprintf("%v", *i) } // Int32Var defines an int32 flag with specified name, default value, and usage string. -- cgit v1.2.3