<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Golang on BrainBit Latest Articles</title><link>https://brainbit.uk/tags/golang/</link><description>Recent content in Golang on BrainBit Latest Articles</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Thu, 25 Nov 2021 00:00:00 +0000</lastBuildDate><atom:link href="https://brainbit.uk/tags/golang/index.xml" rel="self" type="application/rss+xml"/><item><title>Custom Dialers in Go</title><link>https://brainbit.uk/posts/customdialers/</link><pubDate>Thu, 25 Nov 2021 00:00:00 +0000</pubDate><guid>https://brainbit.uk/posts/customdialers/</guid><description>Custom Dialers Why do you need them. Things like net.Dial are amazing , you can very simply create a socket and write to them , and the same for any abstraction really , but the problem begins when you want to do something not covered by the abstraction , this happened to me this week.
Socket Options So I&amp;rsquo;ve been doing a lot of work with go and rabbitmq , and mostly interacting with this library :https://github.</description></item><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>