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…
Tag: go
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…
Goto statement in Go (Golang)
Overview Goto statement allows unconditional jump to a labeled statement with in the same function . Below is the format of the goto statement The label can be valid go statement other…
Import same package name or Aliasing while importing packages in Go (Golang)
Overview Aliasing in importing packages means give a different name to the imported package. Syntax for it is Above statement means that whatever package is present at directory <directory_path> import that package…
Blank Identifier in import in Go (Golang)
Blank identifier in importing packages means specifying a blank import for the imported package. The syntax for it is What is this blank import and why it is used. For this you…
Nested Packages in Go (Golang)
Overview In GO it is possible to create nested packages. Nested packages are those packages that lie within another package. Let’s see an example Example Create a directory named learn. Let’s create…
Package Name and Directory/Folder Name in Go (Golang)- Does they need to be the same
Overview Package name and the name of the directory containing that package don’t necessarily have to be the same. Then what does the import path of a package specify? For example in…