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