diff options
| author | Shulhan <ms@kilabit.info> | 2018-09-03 22:27:44 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-09-03 22:55:06 +0700 |
| commit | d3e6c2e902eb3a00c2dfdcde09bf35282ea63396 (patch) | |
| tree | 63432c09e0dddb08942e7172f24666a811432bb5 /lib/time | |
| parent | aab053ef5c49bcc67f6de5477d9760ea4e3bf6ab (diff) | |
| download | pakakeh.go-d3e6c2e902eb3a00c2dfdcde09bf35282ea63396.tar.xz | |
Move all byte(s) related constant and functions from package text to bytes
Diffstat (limited to 'lib/time')
| -rw-r--r-- | lib/time/duration.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/time/duration.go b/lib/time/duration.go index 7c665a6d..18fb8d9f 100644 --- a/lib/time/duration.go +++ b/lib/time/duration.go @@ -9,8 +9,8 @@ import ( "strconv" "time" + libbytes "github.com/shuLhan/share/lib/bytes" libio "github.com/shuLhan/share/lib/io" - libtext "github.com/shuLhan/share/lib/text" ) const ( @@ -41,12 +41,12 @@ func ParseDuration(s string) (time.Duration, error) { reader.Init(s) c := reader.SkipSpace() - if !libtext.IsDigit(c) { + if !libbytes.IsDigit(c) { return 0, ErrDurationMissingValue } for { - tok, isTerm, c := reader.ReadUntil(seps, libtext.ASCIISpaces) + tok, isTerm, c := reader.ReadUntil(seps, libbytes.ASCIISpaces) if len(tok) == 0 { break } |
