diff options
Diffstat (limited to 'example_test.go')
| -rw-r--r-- | example_test.go | 4 |
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. |
