aboutsummaryrefslogtreecommitdiff
path: root/example_test.go
diff options
context:
space:
mode:
authorFilipe Brandenburger <[email protected]>2015-01-22 14:03:39 -0800
committerFilipe Brandenburger <[email protected]>2015-01-22 14:03:39 -0800
commitf82776d6cc998e3c026baef7b24409ff49fe5c8d (patch)
tree4d43314fadda7f1514d21f742b697ecb33085410 /example_test.go
parent463bdc838f2b35e9307e91d480878bda5fff7232 (diff)
parent376ea2fc4b79bc6fbca80f585898271e7890d6b5 (diff)
Merge pull request #3 from filbranden/bool_value_for_spf13
Bool value for spf13
Diffstat (limited to 'example_test.go')
-rw-r--r--example_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/example_test.go b/example_test.go
index 03ebeaa..6aaed3c 100644
--- a/example_test.go
+++ b/example_test.go
@@ -29,6 +29,10 @@ func (i *interval) String() string {
return fmt.Sprint(*i)
}
+func (i *interval) Type() string {
+ return "interval"
+}
+
// Set is the method to set the flag value, part of the flag.Value interface.
// Set's argument is a string to be parsed to set the flag.
// It's a comma-separated list, so we split it.