golang implementation of bully algorithm in which different processes communicate and decide leader on the basis of their priority. the bully algorithm is a method for dynamically electing a coordinator or leader from a group of distributed computer processes.