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