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