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/
#cgo darwin LDFLAGS: -L/Applications/
#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=")
if err != nil {
fmt.Printf("%v", err)
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