Guest User

Untitled

a guest
Oct 20th, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. jdbc:postgresql://localhost:5432/postgres
  2.  
  3. postgresql://postgres:12qwaszx@localhost:5432/postgres
  4.  
  5. import (
  6. "github.com/jinzhu/gorm"
  7. _ "github.com/jinzhu/gorm/dialects/postgres"
  8. )
  9.  
  10. func main() {
  11. db, err := gorm.Open("postgres", "host=myhost port=myport user=gorm dbname=gorm password=mypassword")
  12. defer db.Close()
  13. }
Add Comment
Please, Sign In to add comment