Skip to content

Commit

Permalink
Use natsort algorithm from dogmatiq/jumble.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Mar 3, 2024
1 parent 245e644 commit 4e4683f
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 190 deletions.
5 changes: 4 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module github.com/dogmatiq/dapper

go 1.21

require google.golang.org/protobuf v1.32.0
require (
github.com/dogmatiq/jumble v0.1.0
google.golang.org/protobuf v1.32.0
)

require github.com/google/go-cmp v0.5.8 // indirect
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
github.com/dogmatiq/jumble v0.1.0 h1:Cb3ExfxY+AoUP4G9/sOwoOdYX8o+kOLK8+dhXAry+QA=
github.com/dogmatiq/jumble v0.1.0/go.mod h1:FCGV2ImXu8zvThxhd4QLstiEdu74vbIVw9bFJSBcKr4=
github.com/golang/protobuf v1.5.0 h1:LUVKkCeviFUMKqHa4tXIIij/lbhnMbP7Fn5wKdKkRh4=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.8 h1:e6P7q2lk1O+qJJb4BtCQXlK8vWEO8V1ZeuEdJNOqZyg=
github.com/google/go-cmp v0.5.8/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.32.0 h1:pPC6BG5ex8PDFnkbrGU3EixyhKcQ2aDuBS36lqK/C7I=
google.golang.org/protobuf v1.32.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
2 changes: 1 addition & 1 deletion internal/fixtures/protostub.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 0 additions & 34 deletions internal/natsort/LICENSE.credits

This file was deleted.

60 changes: 0 additions & 60 deletions internal/natsort/natsort.go

This file was deleted.

93 changes: 0 additions & 93 deletions internal/natsort/natsort_test.go

This file was deleted.

2 changes: 1 addition & 1 deletion kind_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"sort"
"strings"

"github.com/dogmatiq/dapper/internal/natsort"
"github.com/dogmatiq/jumble/natsort"
)

// renderMapKind renders [reflect.Map] values.
Expand Down

0 comments on commit 4e4683f

Please sign in to comment.