aboutsummaryrefslogtreecommitdiff
path: root/duration.go
diff options
context:
space:
mode:
authorspf13 <[email protected]>2014-06-27 10:11:03 -0400
committerspf13 <[email protected]>2014-06-27 10:11:03 -0400
commitb02196a78893a71903e9ad98359e7f891b1e7781 (patch)
tree200eb2e47953d6076e1827cd05cdd82bfa15859a /duration.go
parent2790b68253e8df395da60096bcea40e90daa3b41 (diff)
Moving Value interface to the appropriate file
Diffstat (limited to 'duration.go')
-rw-r--r--duration.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/duration.go b/duration.go
index db59463..db8bfd5 100644
--- a/duration.go
+++ b/duration.go
@@ -18,13 +18,6 @@ func (d *durationValue) Set(s string) error {
func (d *durationValue) String() string { return (*time.Duration)(d).String() }
-// Value is the interface to the dynamic value stored in a flag.
-// (The default value is represented as a string.)
-type Value interface {
- String() string
- Set(string) error
-}
-
// DurationVar defines a time.Duration flag with specified name, default value, and usage string.
// The argument p points to a time.Duration variable in which to store the value of the flag.
func (f *FlagSet) DurationVar(p *time.Duration, name string, value time.Duration, usage string) {