Golang Gorilla Sessions NewCookieStore
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Golang Gorilla Sessions NewCookieStore appeared first on Divyanshu Shekhar ..read more
Visit website
Golang Multipart File Upload Using Form File
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Golang Multipart File Upload Using Form File appeared first on Divyanshu Shekhar ..read more
Visit website
Serve Static Files using Gorilla Mux in Golang
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Serve Static Files using Gorilla Mux in Golang appeared first on Divyanshu Shekhar ..read more
Visit website
Golang Form Data – GET and POST Method
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Golang Form Data – GET and POST Method appeared first on Divyanshu Shekhar ..read more
Visit website
Binary Search Tree in Golang
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Binary Search Tree in Golang appeared first on Divyanshu Shekhar ..read more
Visit website
Golang Gorilla Schema HTML Forms
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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. The post Golang Gorilla Schema HTML Forms appeared first on Divyanshu Shekhar ..read more
Visit website
Golang Linked List | Data Structure
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Golang Linked List | Data Structure appeared first on Divyanshu Shekhar ..read more
Visit website
Serve Static Files in Golang Using FileServer
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Serve Static Files in Golang Using FileServer appeared first on Divyanshu Shekhar ..read more
Visit website
Golang HTML Template ParseFiles and Execute
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Golang HTML Template ParseFiles and Execute appeared first on Divyanshu Shekhar ..read more
Visit website
Golang Gorilla Mux NewRouter Handle
Divyanshu Shekhar | Golang Blog
by Divyanshu Shekhar
3y ago
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 The post Golang Gorilla Mux NewRouter Handle appeared first on Divyanshu Shekhar ..read more
Visit website

Follow Divyanshu Shekhar | Golang Blog on FeedSpot

Continue with Google
Continue with Apple
OR