Use *_test packages to make examples copy-pasteable (#124)
The main reason for this PR was to make the examples in documentation
copy-pasteable, but there are some additional benefits too.
For example, the pool example before this change:
```go
p := New().WithMaxGoroutines(3)
for i := 0; i < 5; i++ {
p.Go(func() {
fmt.Println("conc")
})
}
p.Wait()
```
and after:
```go
p := pool.New().WithMaxGoroutines(3) // has package name
for i := 0; i < 5; i++ {
p.Go(func() {
fmt.Println("conc")
})
}
p.Wait()
``` K
Kimmo Lehto committed
abd9a8b87309f7a96ce00689e5ab0778b1f7310c
Parent: b3c39d3
Committed by GitHub <noreply@github.com>
on 11/12/2023, 2:57:59 PM