aboutsummaryrefslogtreecommitdiff
path: root/float32.go
diff options
context:
space:
mode:
Diffstat (limited to 'float32.go')
-rw-r--r--float32.go4
1 files changed, 4 insertions, 0 deletions
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.