Skip to content

Instantly share code, notes, and snippets.

@hashbender
Last active April 20, 2017 20:29
Show Gist options
  • Save hashbender/4024be4de6005785bc08f2e8563b6eb5 to your computer and use it in GitHub Desktop.
Save hashbender/4024be4de6005785bc08f2e8563b6eb5 to your computer and use it in GitHub Desktop.
GlobalVars
package main
import (
"database/sql"
)
var (
db *sql.DB
)
func main() {
db := initDb()
}
func initDb() *sql.DB {
return nil //TODO
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment