HANDLERS in Golang ?! | What You Should Know About Handlers
limerc
0:00 / 0:00
HANDLERS in Golang ?! | What You Should Know About Handlers
3 228 просмотров · 2 года назад
limerc
90 подписчиков
3 228 просмотров · 2 года назад
Handlers can be confusing for beginners. Let's explore net/http package and learn how to use handlers in golang.
There are different types you can use, so don't get confused. Keep in mind the Handle, HandleFunc and HandlerFunc methods. You might get asked that on an interview.
So which of them would you use, and why? let me know in the comments bellow 😉
0:00 What are handlers?
1:10 Implementing handler
3:40 Register a handler (http.Handle)
5:30 Simply handler (http.HandleFunc)
7:10 Using http.HandlerFunc