As the others already said, mgo (Go MongoDB driver) already does the pooling for you. However if you wish to use a custom connection pool in your webserver, here is a package that provides such a feature:
https://github.com/fatih/pool
Maybe it's not what you want, but at least reading the code would be helpful.
Regards
--
Fatih Arslan
> --
> You received this message because you are subscribed to the Google Groups "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.