<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Learning on BrainBit Latest Articles</title><link>https://brainbit.uk/tags/learning/</link><description>Recent content in Learning on BrainBit Latest Articles</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 18 Nov 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://brainbit.uk/tags/learning/index.xml" rel="self" type="application/rss+xml"/><item><title>Learning golang once and for all</title><link>https://brainbit.uk/posts/golang/</link><pubDate>Thu, 18 Nov 2021 00:00:00 +0000</pubDate><guid>https://brainbit.uk/posts/golang/</guid><description>Golang Learning Json unmarshaling Structs and json tags Something i always forget is that not only the `json:&amp;ldquo;field&amp;rdquo;` thing is not necessary but the key names have to be uppercased:
type User struct { Id int `json:&amp;#34;id&amp;#34;` Name string `json:&amp;#34;name&amp;#34;` Email string `json:&amp;#34;email&amp;#34;` Username string `json:&amp;#34;username&amp;#34;` Address struct { Street string `json:&amp;#34;street&amp;#34;` City string `json:&amp;#34;city&amp;#34;` } `json:&amp;#34;address&amp;#34;` } Otherwise things don&amp;rsquo;t un marshal properly , also nice you can nest structs like that</description></item></channel></rss>