Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sentriz/go-natcmp

natural sort comparisons for Go
https://github.com/sentriz/go-natcmp

Last synced: 3 days ago
JSON representation

natural sort comparisons for Go

Awesome Lists containing this project

README

        

natcmp provides [natural sort](https://en.wikipedia.org/wiki/Natural_sort_order) comparisons for Go. suitable for use with [slices.SortFunc](https://pkg.go.dev/slices#SortFunc) since go1.21

```
$ go get go.senan.xyz/natcmp
```

[![godoc](https://img.shields.io/badge/pkg.go.dev-doc-blue)](http://pkg.go.dev/go.senan.xyz/natcmp)