Singleflight Package singleflight provides a duplicate function call suppression mechanism similar to golang.org/x/sync/singleflight but with support for context cancelation. Installation Run go get resenje.org/singleflight from command line.