This repo is a simple demonstration of the use of one of go's powerful features - concurrency. Two operations are made in different ways.The first operation runs sequentially and the second one runs concurrently.
To build:
go buildTo run:
go run main.goTo execute:
./concurrent-sample-go.exe|---main.go
|---go.mod
|---.README
|---.gitignore // git ignore file (.env, etc.)
|---utils/
|---func.go // operation method functions
|---vars.go // variables- Sequential (approx. 8s)
- Concurrency goroutines & channels (approx. 9s)
Copyright 2026 - Fisayo Obadina - My Profile.