Go API Tutorial - Make An API With Go

preview_player
Показать описание
Do you like programming in Go? If you do then this video is great for you! In this tutorial video I share with you how to make an API in Go! More specifically we are going to be using Gin which is a high performance and relatively simple web framework that will allow us to quickly design and make an API in Go. Hope you enjoy!

📄 Resources 📄

⭐️ Timestamps ⭐️
00:00 | Overview & Prerequisites
01:07 | ServerPronto
02:08 | Dependency Setup
04:47 | Imports & Data Setup
09:22 | Gin Router Setup
09:50 | GET Requests
14:22 | POST Requests
21:51 | Fetching By ID
29:01 | Checkout Books & Query Parameters
33:04 | PATCH Requests
34:30 | Returning Books
37:12 | Conclusion

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️

⭐️ Tags ⭐️
-Tech With Tim
-Go API Tutorial
-Make An API With Go
-Programming With Go
-Golang

⭐️ Hashtags ⭐️
#TechWithTim #GoAPI #Golang
Рекомендации по теме
Комментарии
Автор

I love the fact that you leave your mistakes in. It shows us that even super human programmers make mistakes, gives me a chance to pause and take a stab at the issue, and finally you break down your thought process behind the troubleshooting.

mechwarrior
Автор

Perfect place to go for GO for the first time!

hmshuvo
Автор

Reaaaally cool! Thanks ✌ Guys, pay attention to the terminal: he is using CMD to execute the curl commands! It doesn't work out using the power shell

luciaravazzi
Автор

GO is so sick. Would love to see an advanced tutorial

grantwells
Автор

Great tutorial, Tim (as always!). It's good to see some tutorials that are not just going over basic syntax. This is still very simple but it illustrate a real world example!

Moccar
Автор

got more out of the video then expected, helps clarify a lot of the little details and what gin is doing. Thanks!

timothyn
Автор

Been looking for a simple yet clear and concise tutorial to learn Go then found your channel, It's perfect!
My homework now is to read about pointer, what does it do and why do we need it on Go? I'm using C# and I'm a bit confuse for what is that for
Thanks a lot, Tim!

horizonariondust
Автор

Go is best suited for backend infra...and recently AWS released aws cdk support for GO.

gshan
Автор

I wished I didn't pick this language but it's so cool and really powerful.
When you understand the concepts it's pretty easy to pick up!
Thanks for teaching sir!

chwderz
Автор

Great video Tim! For anyone else running on MAC, if you get the error zsh: no matches found: localhost:8080/checkout?id=3 then run the curl command like this - curl -s -X PATCH

ezrablack
Автор

Great video! Mistakes are the best ways to learn... glad you kept them in

chrisjarvis
Автор

Excellent demonstration of some key features. I've never played with GO before - I never thought about it as anything more than a wrapper language for deployments and such...

Thanks for opening my eyes. I think I will be trying my hand at a Go web page this weekend.

JohnBoen
Автор

Loved this tutorial, very helpful! Thanks, Tim. The only thing I didn't quite follow was why you used router.PATCH at 33:05 - didn't quite get the rationale behind when to use PATCH versus POST.

nitin_puranik
Автор

I could learn many things, thanks Tim. I hope that you launch new videos about GO which is a great programming language

lucasfe
Автор

Thanks for this tutorial. That is a really great start to get the basics and continue from here!

LassePhlipsson
Автор

Need more golang tutorials, thank you sir!

chem
Автор

There is no need to use json tags in the book struct as the IndentedJSON fucntion encodes the go structs into json itself.

pranavsharma
Автор

I'd love to see more Go tutorials! Concurrency, databases, etc.

gogopher
Автор

Short and simple tutorial. Great works Tim!

myschored
Автор

If I am not using gin, how else can I bind the json to the object?

ishan_sinha