#Tutorial

120 articles

06 Handle Not Found Page

06 Handle Not Found Page

Understanding Not Found Handler Apart from the Router being able to control panic, it can also have a handler for pages not found or what we often call pages that cannot be accessed.

05 Learn About Panic Handler

05 Learn About Panic Handler

Understanding Panic Handlers When we create logic in the handler, we must think of a case where panic occurs, then what should we do?

04 Learn About Serve File

04 Learn About Serve File

Understanding File Server In the material Creating Golang Web. So the Router also supports serving static files using the ServeFiles(Path, FileSystem) function where in Path we have to use Catch All Parameters.

03 Learn About Route Pattern

03 Learn About Route Pattern

Use of Named Parameter Does the Pattern Router have a Pattern?

02 Learning About HTTP Router Params

02 Learning About HTTP Router Params

Use of HTTP Router Params The httprouter.Handle has an additional parameter, namely Params, which is used to store parameters sent from the client, but this Params is not a query for parameters but is a parameter from the URL.

01 Introduction HTTP Router

01 Introduction HTTP Router

Introduction HttpRouter is a popular open source library for HTTP Handler in Golang.

20 How to Understanding Routing Library in Golang

20 How to Understanding Routing Library in Golang

Routing Library Golang actually provides ServeMux as a handler that can handle several endpoints or the term is routing.

19 How to Understanding HTTP Middleware in Golang

19 How to Understanding HTTP Middleware in Golang

Middleware In web creation, we often hear the concept of middleware or filter or interceptor which is a feature that we can add code to before and after a handler is executed.

18 How to Download File in Golang

18 How to Download File in Golang

Download Files Apart from uploading files, we also need or need a page that can download files or something on our website.

17 How to Upload File in Golang

17 How to Upload File in Golang

Upload Files Apart from receiving data input in the form of forms and query params, we usually also need data input in the form of files from our users.

16 How to Understanding HTML Web Redirect in Golang

16 How to Understanding HTML Web Redirect in Golang

Redirects When we create a website, if the user accesses various pages randomly, the page will not be found.

15 How to Understanding Web XSS (Cross Site Scripting) in Golang

15 How to Understanding Web XSS (Cross Site Scripting) in Golang

Introduction to XSS (Cross Site Scripting) XSS is one of the security issues that usually occurs when creating a website.