Blog

Golang Gorilla Schema HTML Forms

In the previous blog, we saw how to read form data using the net/http package. This time we will use Golang gorilla schema to read form data. Golang Gorilla Schema First of all learn about Golang HTML Forms then use gorilla schema. Full Source Code: Learn more about Golang HTML Forms from Golang.org.

Golang Linked List | Data Structure

In this Blog, We will learn about one of the Data Structures in Golang that is Linked List. We will learn creation of nodes, linking of nodes and functions based on Golang Linked List. Before Learning Linked List you make sure the Golang Basics are clear and should have knowledge about Golang pointers. What is…
Read more

Serve Static Files in Golang Using FileServer

Static Files plays a very important role in web development. Static Files like Images, CSS, JS, etc makes our website beautiful and interactive. In this blog, we will learn how to Serve Static files in Golang HTTP Server. In the previous blog we learned about Golang templates, we will use the same template with a…
Read more

Golang HTML Template ParseFiles and Execute

Golang HTML Template ParseFiles and Execute, parses the HTML Files, and then Execute it to allow us to display dynamic data with the help of placeholders, that can be replaced with the values at the runtime, by the template engine. The data can also be transformed according to users’ needs. In this blog, we will…
Read more

Golang Gorilla Mux NewRouter Handle

Golang has net/http package for managing HTTP. Then Why we need a third-party Golang package Gorilla Mux. The answer is Go’s net/http package offers a lot of features for HTTP requests routing but one thing it doesn’t do very well is Dynamic Routing, which will be achieved by Golang Gorilla Mux NewRouter Handle Function. Dynamic…
Read more

Golang HTTP HandleFunc | Request Routing

Web Development is all about multiple routing, so we have to define more than one URL route in a Go Web Application using Golang net/http HandleFunc to enable multiple Request Routing. This also includes mapping of the path to the respective Handlers and resources. In this example, we are going to make three endpoints, such…
Read more

Creating a Simple HTTP Server in Golang

A Simple HTTP Server in Golang can easily be created using Golang’s net/http package. In this blog, we will be creating a simple HTTP Server in Golang that will render some text on the browser. Create a http-server.go file and copy the code. Golang HTTP Server Run the program from the command line. After running…
Read more

Golang ResponseWriter & Request | Handler Interface

The Previous Blog we talked about How the Golang HTTP Server is created using the Golang TCP Server using the Go Net Package. In this blog, we will take a look at Golang ResponseWriter and Request in net/http package Handler Interface. But we don’t have to make that much effort just to create a server…
Read more

Golang Pointer Garbage Collection – Memory Management

Garbage Collection means that you don’t have to take care of the deallocated memory. In Golang, memory is automatically reclaimed when it is not in use. Golang uses Pointer Garbage Collection and we don’t have to free up the allocated memory. If you come from a high-level language background like Java, Python, Ruby, C#, etc,…
Read more

Command-Line Arguments in Golang

The os package in Golang provides various functions in order to deal with the operating system in a platform-independent manner. Command-Line Arguments in Golang are available to a program in a variable named Args that is part of the os package. The Args variable can be accessed using ‘os.Args‘. os.Args variable is a slice of…
Read more