abcex up
This commit is contained in:
parent
d62efd6844
commit
57cfdf3e16
3 changed files with 6 additions and 6 deletions
2
go.mod
2
go.mod
|
@ -3,7 +3,7 @@ module g.arns.lt/zordsdavini/zord-tree
|
|||
go 1.21
|
||||
|
||||
require (
|
||||
g.arns.lt/zordsdavini/abcex/v3 v3.0.0
|
||||
g.arns.lt/zordsdavini/abcex/v4 v4.0.4
|
||||
github.com/otiai10/copy v1.6.0
|
||||
golang.org/x/exp v0.0.0-20230522175609-2e198f4a06a1
|
||||
)
|
||||
|
|
4
go.sum
4
go.sum
|
@ -1,5 +1,5 @@
|
|||
g.arns.lt/zordsdavini/abcex/v3 v3.0.0 h1:LnlDtaBBOpgicMI/dcBUxlu4r4+IFt/MD19JemphgFc=
|
||||
g.arns.lt/zordsdavini/abcex/v3 v3.0.0/go.mod h1:z2xqDlRFVnLMnCGpqRjbs9T9EY6lJKJnQmU3zJLSNq8=
|
||||
g.arns.lt/zordsdavini/abcex/v4 v4.0.4 h1:idjvgkCjrjZfDxLyOcX7lCIdIndISDAkj77VCvhu8/c=
|
||||
g.arns.lt/zordsdavini/abcex/v4 v4.0.4/go.mod h1:/+//gYSUtJrdsmTtWNoffRO4xD1BuPRUMGW4ynet7iE=
|
||||
github.com/otiai10/copy v1.6.0 h1:IinKAryFFuPONZ7cm6T6E2QX/vcJwSnlaA5lfoaXIiQ=
|
||||
github.com/otiai10/copy v1.6.0/go.mod h1:XWfuS3CrI0R6IE0FbgHsEazaXO8G0LpMp9o8tos0x4E=
|
||||
github.com/otiai10/curr v0.0.0-20150429015615-9b4961190c95/go.mod h1:9qAhocn7zKJG+0mI8eUu6xqkFDYS2kb2saOteoSB3cE=
|
||||
|
|
6
tree.go
6
tree.go
|
@ -15,7 +15,7 @@ import (
|
|||
"regexp"
|
||||
"strings"
|
||||
|
||||
abcex "g.arns.lt/zordsdavini/abcex/v3"
|
||||
abcex "g.arns.lt/zordsdavini/abcex/v4"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
|
@ -386,7 +386,7 @@ func addMissingId(dir string, id int64) error {
|
|||
break
|
||||
}
|
||||
if line == "---" {
|
||||
err = addMeta(path, "id", abcex.Encode(id))
|
||||
err = addMeta(path, "id", abcex.Encode(id, abcex.BASE36))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -440,7 +440,7 @@ func getMaxId(dir string) (int64, error) {
|
|||
|
||||
if strings.HasPrefix(line, "* id:") {
|
||||
line = strings.TrimPrefix(line, "* id:")
|
||||
i := abcex.Decode(strings.Trim(line, " "))
|
||||
i := abcex.Decode(strings.Trim(line, " "), abcex.BASE36)
|
||||
if i > max {
|
||||
max = i
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue