diff options
| author | Cameron Moore <[email protected]> | 2016-07-11 16:00:10 -0500 |
|---|---|---|
| committer | Cameron Moore <[email protected]> | 2016-08-16 12:20:59 -0500 |
| commit | f90e8bbe4975ae9216a06b7d6f8d33590628e4ab (patch) | |
| tree | 4e958ba273e2c0b767f73131d061f8595f982861 /int_slice.go | |
| parent | 01665e1eb3d0533dca0e5acffdff9eec1fcb886f (diff) | |
Refactor default value detection
In Go 1.7 the default value for a time.Duration will change from "0" to
"0s". This commit replaces the simplistic `isZeroValue` with a more
intelligent implementation that checks for zero values based
upon the specific type of the flag.
Diffstat (limited to 'int_slice.go')
0 files changed, 0 insertions, 0 deletions
