In this article, we will explore the http ListenAndServe function in Go net/http package in detail, along with examples. Introduction: Go (also known as Golang)…
Category: packages
In this article, we will explore the http HandleFunc function in the Go net/http package in detail, along with examples. Introduction: Go, also known as…
In this article, we are going to learn Building an HTTP Handler Function in Go with an example. Introduction: Go is a popular programming language…
In this article, we are going to learn http.DetectContentType function in go with an example. Introduction: When building web applications, it is important to accurately…
In this article, we are going to learn how to convert header key to its canonical form in go lang. The CanonicalHeaderKey function in Go…
Here, we will learn about net/http package of go golang. The net/http package provides a set of tools to build HTTP servers, clients and middleware.…
Here, we will learn How to get URL params in Gorilla Mux in go. To get params, we use mux.Vars(r *http.Request) function of gorilla mux.…
strconv.AppendFloat() function is used to append float value to the slice of bytes in go. It appends float value in multiple format. AppendFloat() function of…
strconv.AppendBool() function is used to append bool value to the slice of bytes in go. It appends “true” or “false” bool value. AppendBool() function of…
bytes.Split() function is used to split a slice of bytes with separator in go. It slices a slice of bytes into all sub-slices by separator.…