 <p>Yes it is a good approach. when you go through the go documentation it clearly tells you </p> <blockquote> <p>It is rare to Close a DB, as the DB handle is meant to be long-lived and shared between many go routines.</p> </blockquote> <p>Go maintains its own pool of idle connections. Thus, the Open function should be called just once. It is rarely necessary to close a DB.</p>