Go-JWT-Postgres-Mysql-Restful-API
Go-JWT-Postgres-Mysql-Restful-API copied to clipboard
There is some issue while integrating with Postgres , After running program I am getting this error , It is working fine with SQLite3
`We are getting the env values panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0x434d526]
goroutine 1 [running]: github.com/jinzhu/gorm.(*DB).clone(0x0, 0x0) /Users/go/src/github.com/jinzhu/gorm/main.go:856 +0x26 github.com/jinzhu/gorm.(*DB).Debug(...) /Users/go/src/github.com/jinzhu/gorm/main.go:531 github.com/gouthamjm/backend/crud/api/controllers.(*Server).Initialize(0x487f090, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /Users/go/src/github.com/gouthamjm/backend/crud/api/controllers/base.go:59 +0xc5 github.com/gouthamjm/backend/crud/api.Run() /Users/go/src/github.com/gouthamjm/backend/crud/api/server.go:32 +0x265 main.main() /Users/go/src/github.com/gouthamjm/backend/crud/main.go:6 +0x25 exit status 2 `