about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmile <hanemile@protonmail.com>2019-03-06 16:07:23 +0100
committerEmile <hanemile@protonmail.com>2019-03-06 16:07:23 +0100
commit7e803cfc20e338d4ed8475196aad90b3b2f50870 (patch)
tree1a25fd986b985bbea7b05a6cb280c6050db9529d
parent8a5903414f928d3cb076635dc5972ce149862326 (diff)
simple fix
-rw-r--r--db_actions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/db_actions.go b/db_actions.go
index 8a3bdf8..26d9b59 100644
--- a/db_actions.go
+++ b/db_actions.go
@@ -43,7 +43,7 @@ var (
 )
 
 // connectToDB returns a pointer to an sql database writing to the database
-func ConnectToDB(dbname) *sql.DB {
+func ConnectToDB(dbname string) *sql.DB {
 	connStr := fmt.Sprintf("user=%s dbname=%s sslmode=%s", DBUSER, dbname, DBSSLMODE)
 	db := dbConnect(connStr)
 	return db