[go-nuts] unable get the json response values through json.Unmarshal()

2021-10-03 Thread Nagaraj Trivedi
uot;:\"myn...@myname.com\",\"phone\":\"123456789\"}\n"}2021/10/03 23:34:35 {"content":"{\"id\":1,\"name\":\"My Name\",\"email\":\"myn...@myname.com\",\"phone\":\"123456789\&quo

[go-nuts] how to create array of structures instances for the nested structures

2021-07-14 Thread Nagaraj Trivedi
Hi all, it would be helpful for me if a small doubt of mine is resolved. I want to know how to create an array of structure instances for a nested structure. Let me write it type Strct1 struct { val1 int val2 int } type Strct2 struct { Namce string temp Strct1 } I want t