Re: [go-nuts] GORM, saving values

2018-11-29 Thread Space A.
In addition to exported fields, you don't need to import _ "github.com/lib/pq" just these "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/postgres" четверг, 29 ноября 2018 г., 21:04:06 UTC+3 пользователь Mohamed Yousif написал: > > Beside exporting issue, you need to

Re: [go-nuts] GORM, saving values

2018-11-29 Thread Mohamed Yousif
Beside exporting issue, you need to commit these models into your database. I use .Create(). On Thu, 29 Nov 2018 at 5:47 PM, Robert Engels wrote: > If gorm is like json marshalling the fields need to be exported, that is > capitalized. > > Just a thought. > > On Nov 29, 2018, at 12:02 AM, mmbari

Re: [go-nuts] GORM, saving values

2018-11-29 Thread Robert Engels
If gorm is like json marshalling the fields need to be exported, that is capitalized. Just a thought. > On Nov 29, 2018, at 12:02 AM, mmbarighz...@gmail.com wrote: > > New to Go - please bear with me. > > I am trying to create a new row in my table, but the values are being saved > as `Null