A humble package aiming to illustrate Go patterns and language features.
The repo aims at illustrating Go patterns and language feautures with simple working examples. It has multiple modules tied together in a single workspace. The driverpgms folder has separate main modules to illustrate features. The features themselves are in individual packages. Note that the code snippets may be contrived and not necessarily production ready.
go1.19.4 or above
Illustrate sliceworking - this execution will illustrate why it is better to provide a capacity for a slice whenever possible.
go test -bench Benchmark_Compare ./sliceworking/ -benchmem -cpu=1
Illustrate fanin - a simple example of the fanin concurrency pattern.
go run ./driverpgms/fanin/main.go
Illustrate fanin - a simple example of the fanout concurrency pattern.
go run ./driverpgms/fanout/main.go
Contributors names and contact info
https://github.com/abhisheknaths
Inspiration, code snippets, etc.