Browse Source

delete unused package

master v0.0.2
andrey1s 2 years ago
parent
commit
f9392c052b
  1. 2
      duration.go
  2. 2
      duration_test.go

2
duration.go

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

2
duration_test.go

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

Loading…
Cancel
Save