gobogo

This package provides an implementation of
bogosort for the
Go programming language that usees the
generics feature introduced in Go 1.18.
Installation
go get -u github.com/BenJetson/gobogo
Example
package main
import (
"fmt"
bogo "github.com/BenJetson/gobogo"
)
func main() {
s := []int{5, 1, 9, 8, 3, 6, 2, 4, 7}
fmt.Println("input:", s) // unsorted.
bogo.Sort(s)
fmt.Println("output:", s) // (eventually) sorted!
}
You can try it on the Go Playground!
Usage
I wouldn't recommend using this package, but
documentation is available if
you would like to do so.
All usage is subject to the terms of the MIT License.