In this tutorial, we will see how protocol buffers can be used in the context of GO Language. What is Protocol Buffer Protocol Buffers are data format which stores data in a…
Blog
Abstract Class in GO: Complete Guide
Go Interface doesn’t have fields and also it doesn’t allow the definition of methods inside it. Any type needs to implements all methods of interface to become of that interface type. There…
Inheritance in GO using interface + struct
This post describes inheritance using interface and struct. Do visit our Inheritance in Go Complete Guide post for full reference Go supports inheritance by embedding struct or using interface. There are different…
Inheritance in GO using interface
This post describes inheritance using interface. Do visit our Inheritance in Go Complete Guide post for full reference Go supports inheritance by embedding struct or using interface. There are different ways of…
Inheritance in GO using struct (Embedding)
This post desicribes inheritance using struct only. Do visit our Inheritance in Go Complete Guide post for full reference Go supports inheritance by embedding struct or using interface. There are different ways…
New Relic Example in GoLang with Deep Instrumentation
It is easy to integrate newrelic in GoLang. We just need one of the middleware to use the newrelic. Application. For eg in GIN framework of GO we can do something like…
Golang: Redis client example
First, we will write the Redis layer that will have a function to initialize the Redis client. The Redis client will only be created once and used throughout. In the below code,…
Interface to struct in Go (Golang)
We come around a situation sometimes in programming where an empty interface might a struct internally and we have to get the concrete struct out of it. Whoever is not aware of…
Golang Maps: Not safe for concurrent use
If you are a golang web application developer, then you often might encounter a use case of storing some data in memory in a go map for frequent access. If that is…
Golang net/http Package – Detecting Timeout
Below is a sample code piece to know if there is a timeout for an upstream call that is using net/http package. Http Client is created with 1 nanosecond timeout so that…