GoLangFix is a community of Go Language developers. You can ask Go Language related questions or find answers for thousands of questions which has already been answered. When new question is been posted, our volunteer community leaders will search for 100% working solutions on other communities such as Stackoverflow, Reddit, Stack Exchange etc. and tests them personally. Finally the working solution is posted on our website licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0 . You will receive an email notification when your question is been answered.

Golang lib/pg can't connect to postgres

Issue I have such code: package main import ( “database/sql” “fmt” “log” _ “github.com/lib/pq” ) func main() { db, err := sql.Open(“postgres”, “user=postgres dbname=vagrant sslmode=disable”) if err != nil { log.Fatal(err) } rows, err := db.Query(“SELECT 3+5”) if err !=

Continue reading