removed uber zap from vendor and switched to dep from glide (#6)

This commit is contained in:
Steve Brunton authored and GitHub committed 2017-11-29 22:48:49 -05:00
1 parent be3ca4608c
commit c37abb638f
514 files changed
+25671 -44097

No files matched your search

+3
View File
@@ -214,6 +214,9 @@ func (d Duration) String() string {
ms = int64(time.Duration(d) / time.Millisecond)
unit = "ms"
)
if ms == 0 {
return "0s"
}
factors := map[string]int64{
"y": 1000 * 60 * 60 * 24 * 365,
"w": 1000 * 60 * 60 * 24 * 7,
+3
View File
@@ -91,6 +91,9 @@ func TestParseDuration(t *testing.T) {
out time.Duration
}{
{
in: "0s",
out: 0,
}, {
in: "324ms",
out: 324 * time.Millisecond,
}, {