delete unused package
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
andrey1s
2022-10-11 22:25:15 +03:00
parent 8d5acffdab
commit f9392c052b
2 changed files with 1 additions and 3 deletions

View File

@@ -3,7 +3,6 @@ package iso8601
import (
"errors"
"fmt"
"log"
"time"
)
@@ -138,7 +137,6 @@ func ParseDuration(s string, opts ...Option) (time.Duration, error) {
if err != nil {
return 0, fmt.Errorf("iso8601: %w fraction %q", err, orig)
}
log.Println(u, f, scale, r)
v += r
}

View File

@@ -80,7 +80,7 @@ func TestParseDuration(t *testing.T) {
},
"zero time": {
parse: "P3Y6M4DT12H30M17S",
expect: parseDuration(t, "30732h30m17s"),
expect: parseDuration(t, "30756h30m17s"),
opts: []iso8601.Option{
iso8601.From(func() time.Time {
return time.Time{}