Example implementation of the sleep sort using Go concurrency.
The program will randomly generate and print an array, and then print the sorted array:
original: [3 147 23 242 44]
sorted: [3 23 44 147 242]
To run the example, use go run
:
go run cmd/sleep-sort-go-example/sleep-sort-go-example.go