Commit d517cd86 authored by Simon Welsh's avatar Simon Welsh

More touch up

parent d54cc0b0
......@@ -12,6 +12,7 @@ package libpq
// pg-config --libdir
#cgo darwin CFLAGS: -I/Applications/Postgres.app/Contents/MacOS/include
#cgo darwin LDFLAGS: -L/Applications/Postgres.app/Contents/MacOS/lib
#cgo CFLAGS: -I/usr/include/postgresql
#cgo LDFLAGS: -lpq
*/
import "C"
......@@ -31,7 +31,7 @@ var stmt *sql.Stmt = nil
func main() {
// create new database conenction
con, err := sql.Open("libpq", "user=simon password=pass dbname=logbot")
con, err := sql.Open("libpq", "user=simon password=pass dbname=logbot host=127.0.0.1")
if err != nil {
fmt.Printf("%v", err)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment