aboutsummaryrefslogtreecommitdiff
path: root/uint32.go
diff options
context:
space:
mode:
authorspf13 <[email protected]>2014-07-11 10:25:27 -0400
committerspf13 <[email protected]>2014-07-11 10:25:27 -0400
commit463bdc838f2b35e9307e91d480878bda5fff7232 (patch)
treecb01b60a27df6601aa01c06791bec65e0c2674b4 /uint32.go
parentb02196a78893a71903e9ad98359e7f891b1e7781 (diff)
Adding Type() method to the values.
Diffstat (limited to 'uint32.go')
-rw-r--r--uint32.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/uint32.go b/uint32.go
index 165c8b2..05bc3bd 100644
--- a/uint32.go
+++ b/uint32.go
@@ -22,6 +22,10 @@ func (i *uint32Value) Get() interface{} {
return uint32(*i)
}
+func (i *uint32Value) Type() string {
+ return "uint32"
+}
+
// Uint32Var defines a uint32 flag with specified name, default value, and usage string.
// The argument p points to a uint32 variable in which to store the value of the flag.
func (f *FlagSet) Uint32Var(p *uint32, name string, value uint32, usage string) {