Re: [go-nuts] Making a post call with multiple instances of the same struct

2024-08-05 Thread G K
into a Go value. It unmarshals fine you define the var Lock model.Lock as just a struct. On Monday, August 5, 2024 at 11:37:26 AM UTC-5 Ian Lance Taylor wrote: > On Mon, Aug 5, 2024 at 6:55 AM G K wrote: > > > > I'm trying to create an HTTP rest api end where a POST method wi

[go-nuts] Making a post call with multiple instances of the same struct

2024-08-05 Thread G K
Hi, I'm trying to create an HTTP rest api end where a POST method will be able to accept and deserialize (unmarshall) a same data structre into numerous instances. For the sake of example, lets say I have json struct: type Lock struct { Key uint `json:"key"` } Nom Im trying to post uns