Golang / Go Crash Course 01 | Building a REST API with Mux

preview_player
Показать описание
In this video we are going to build a simple REST API using Golang / Go and the Gorilla Mux Http Router and Dispatcher.

Predictable Pricing and an easy to use platform to deploy your applications in a reliable global infrastructure.

Elementor: The Best Page Builder for Wordpress.

➥➥ Learn even more! ➥➥

➥➥➥ RECOMMENDED TOOLS I USE ➥➥➥

AFFILIATE DISCLOSURE: This video and description may contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. I won't put anything here that I haven't verified and/or personally used myself.

#Golang #Mux #REST
Рекомендации по теме
Комментарии
Автор

excelente Mister Pragmatric muy bien explicado, saludos de los andes peruanos

josbexerr
Автор

Gorilla Mux / Go Gin => Which one to use? You have videos on both topics...

MaheshKumar-bgre
Автор

Woow, i love this tutorial. Thanks a lot

riskyamaliaharis
Автор

Buenas!!! Tendras este curso en español????, gracias

silviozabala
Автор

Why we need to write Post inside object @15.05. I don't understand the reason

Utubewonderful
Автор

Please can add the source code for this application

yungwarlock
Автор

Great tutorial!, I got 2 error messages. They are not complicated by I wonder why the IDE(VSC) doesn't mark an error and the compiler does it.

./server.go:19:30: undefined: getPosts
./server.go:20:30: undefined: addPost

This is the route file
func getPosts(writer http.ResponseWriter, request *http.Request) {
func addPost(writer http.ResponseWriter, request *http.Request) {

This is the server file
router.HandleFunc("/posts", getPosts).Methods("GET")
router.HandleFunc("/posts", addPost).Methods("POST")

I know they are private but inside the same package so I don't need to import them. I move all the code inside the server file and can continue without problems. Any ideas?

Cerezo
Автор

I did the same code as you, but the terminal said getPosts Undefined!!

trunghuynh
Автор

where is the github link, why would someone bother to watch this

gkranasinghe
welcome to shbcf.ru