#Tutorial

120 articles

14 How to Understanding HTML Template Cache in Golang

14 How to Understanding HTML Template Cache in Golang

Introduction to Cache Templates In previous program codes that we have studied practically, they were not efficient.

13 How to Understanding HTML Template Function in Golang

13 How to Understanding HTML Template Function in Golang

Introduction to Function Templates Apart from accessing fields in templates, we can also access functions or functions in Golang.

12 How to Understanding HTML Template Layout in Golang

12 How to Understanding HTML Template Layout in Golang

Introduction to Layout Templates When we create a website page, there are several parts that are always the same on each page, for example header and footer, so if there are parts that are the same it is recommended that they be saved in a separate template so that they can be used in other templates or sometimes we call them reusable.

11 How to Understanding HTML Template Action in Golang

11 How to Understanding HTML Template Action in Golang

Introduction to Action Templates Not only can we render text in templates, but we can also support action commands such as if branching, for loops and so on.

10 How to Understanding HTML Template Data in Golang

10 How to Understanding HTML Template Data in Golang

Introduction to Data Templates If you have studied HTML Templates in the previous article, then we will continue with data templates where we can display this data dynamically by using struct or map data.

09 How to Understanding HTML Template in Golang

09 How to Understanding HTML Template in Golang

Dynamic Web using Templates In the previous post we discussed dynamic websites but using response strings contained in static files.

08 How to Understanding File Server in Golang

08 How to Understanding File Server in Golang

Introduction to File Server Golang has a feature called FileServer. With this we can create a Handler in Golang Web that we have used as a static file server and this FileServer does not need to be manually loaded again.

07 How to Understanding Cookie in Golang

07 How to Understanding Cookie in Golang

Introduction to Cookies Before discussing Cookies, we need to know that HTTP is stateless between client and server, which means the server does not store any data to remember every request from the client.

06 How to Used Response Code in Golang

06 How to Used Response Code in Golang

Introduction to Response Codes Something we also need to know about HTTP is the response code.

05 How to Used Request Form Post in Golang

05 How to Used Request Form Post in Golang

Introduction to Post Forms Similar to the previous post, when we use the GET method, the results of all the data in the form will be a param query, whereas if we use POST then all the data in the form is sent via the body of the HTTP Request, only the method is different.

04 How to Used Request Header in Golang

04 How to Used Request Header in Golang

Header Introduction Apart from query parameters on HTTP, we can also use Headers.

03 How To Used Query Parameter in Golang

03 How To Used Query Parameter in Golang

Introduction to Query Parameters Query parameters are one of the features of http that we usually use to send data from the client to the server.