Skip to content

Commit

Permalink
Add notes for sort package
Browse files Browse the repository at this point in the history
  • Loading branch information
Lixfeld committed May 18, 2024
1 parent d632bfc commit 4351ba9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/packages/sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Package [sort](https://pkg.go.dev/sort)
Package sort provides primitives for sorting slices and user-defined collections.

Note: As of Go 1.22, some functions simply call the corresponding functions in the slices package.

Useful Functions:
```go
Ints(x []int)
Strings(x []string)
Slice(x any, less func(i, j int) bool)
```
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ nav:
- builtin: packages/builtin.md
- fmt: packages/fmt.md
- slices: packages/slices.md
- sort: packages/sort.md
- strconv: packages/strconv.md
- strings: packages/strings.md
- sync: packages/sync.md
Expand Down

0 comments on commit 4351ba9

Please sign in to comment.