[go-nuts] Re: Decode as JSON and store the JSON as blob in DB

2017-11-21 Thread Nathan Kerr
I think what was meant was to define Service as: type Service struct { ID string `json:"id,omitempty" db:"id"` Name string `json:"name" db:"name"` Contract json.RawMessage `json:"contract" db:"contract"` } This assumes you don't need to access the contents of Service.Contract and they

[go-nuts] Re: Decode as JSON and store the JSON as blob in DB

2017-11-16 Thread mailtov16
Tamas, Can u explain ? On Thursday, November 16, 2017 at 11:47:03 PM UTC+5:30, Tamás Gulácsi wrote: > > json.RawMessage -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send a