Consensus executed by multiple miners

Good morning,
i implemented a simple blockchain from scratch using golang, Now , i want to implement a consensus(mining) algorithm.
Multiple miners must execute the consensus algo, how to build this in Golang??
how to build or simulat that i have multiple Miners ?
best regards.

i found this good tutorial to start with multi threading using goroutines and channels