This package allows a method of your Go application of only one access at the same time, and can get the same results are returned.
go get github.com/naiba/avalanche
.- Just Do something
res, err := avalanche.Do("uniqueKey", something(t))
. - To see more on
avalanche_test.go
.