improve documentation
This commit is contained in:
parent
232463e1db
commit
0826963742
16 changed files with 80 additions and 28 deletions
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/go-pg/pg"
|
||||
)
|
||||
|
||||
// DBConn returns a postgres connection pool
|
||||
// DBConn returns a postgres connection pool.
|
||||
func DBConn() (*pg.DB, error) {
|
||||
|
||||
opts, err := pg.ParseURL(viper.GetString("database_url"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue