Category: Golang

Golang Gorilla Sessions NewCookieStore

In this blog, we will learn about Golang Gorilla Sessions NewCookieStore. HTTP (Hypertext Transfer Protocol) being a stateless protocol does not store any kind of information about the previous requests and the user on the server. Every time a client requests a web page from the server, a new connection is started. But we can…
Read more

Golang Multipart File Upload Using Form File

In this blog, we will learn about Golang Multipart File Upload using Form File. Uploading Files on the server is useful in many scenarios like uploading your resume on a job portal, uploading your picture on any website or social media. HTML Template for Uploading File In this example, we are using bootstrap starter code…
Read more

Serve Static Files using Gorilla Mux in Golang

In the previous blog, we served static files through Golang’s HTTP file Server. In this blog, we will learn how to serve static files in Golang using Gorilla Mux. As we have already created the template and the static files that are to be served, here we are just going to update the previous code…
Read more

Golang Form Data – GET and POST Method

Forms play a major role in a website, whenever we want to collect data from the user and want to process it on our server. You already have seen so many websites where you need to login and register, all those websites implement HTML Forms and the data entered is stored on the server. We…
Read more

Binary Search Tree in Golang

In the previous blog about Golang Data Structures, we learned about Linked lists. This blog will guide about the representation and implementation of Binary Search Tree in Golang. A Tree is a non-linear Data Structure unlike the arrays, slices, and linked lists. A Binary Tree is also a tree and data structure that has a…
Read more

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