Questions tagged as 'gorm'

1
answer

Associations in GOLANG using GORM

Good morning, I have the following structures: /* * User */ type User struct { ID uint 'gorm:"primary_key" json:"id' Name string 'json:"name"' Email string 'json:"email"' Pass...
asked by 24.02.2018 / 19:50
0
answers

depuration table with gorm

People, I'm having a debugging problem. I'm working with GORM, and I have to debug a table with more than 20,000,000 records. I have to debug records depending on a particular date, the idea is to have the database engine bank, for which I...
asked by 12.12.2018 / 17:19
0
answers

golang gin web framework, invalid memory address or nil pointer dereference

I'm doing tests with gin and gorm , I have the following program: package main import ( "fmt" "github.com/gin-gonic/gin" "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql" ) var db *gorm.DB var err error t...
asked by 22.05.2018 / 23:22