Overview json/encoding package contains methods that can be used to convert a request body of an incoming HTTP request into a golang struct. Before we start just a word about the request…
Category: Tech
Decorator design pattern in Go (Golang)
Overview Decorator design pattern is a structural design pattern. It lets you provide additional functionality or decorates an object without altering that object. It is better understood with an example. Imagine you…
Canonical HTTP Header Key Meaning
Canonical form means that first character and after that any character following a hyphen is in uppercase. All other characters will be in lowercase. Example of canonical forms are All the keys…
Check if a particular header is present in a HTTP request in Go (Golang)
Overview Below is the format in which a Header is represented in go. So internally header is a key value map with key being represented in canonical form. Canonical form means that…
Get request headers from an incoming HTTP request in Go (Golang)
Note: Related Post Set response headers for an incoming HTTP request in Go – https://golangbyexample.com/set-resposne-headers-http-go/ Get response headers for an outgoing HTTP request in Golang- https://golangbyexample.com/get-response-headers-making-go/ Set headers for an outgoing HTTP…
About GOLANG
This is chapter 1 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Below is the table of contents for…
GO Installation
This is the chapter 2 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – Set up GO…
Golang Advanced Tutorial
Overview Welcome to the Golang advanced tutorial series. The tutorial in this series are elaborative and we have tried to cover all concepts with examples. This tutorial is for those who are…
Set up GO Workspace and Hello World Program
This is the chapter 3 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – Packages and Modules…
All basic data types in Go (Golang)
This is the chapter 7 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – FunctionsPrevious Tutorial –Variables Now let’s check out…