Тёмный

Build a Rest API with GoLang 

Laith Academy
Подписаться 72 тыс.
Просмотров 110 тыс.
50% 1

In this tutorial, you will learn how to build a REST API with the go programming language.\
Timeline:
0:00 - What is a RESTFUL API
3:21 - Setting up a Golang App
10:50 - A GET Request
16:00 - A POST Request
22:20 - A GET Request (by id)
30:15 - A PATCH Request
Postman Download
www.postman.com/

Опубликовано:

 

1 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 82   
@aloSolo
@aloSolo 4 месяца назад
I'm glad how you break down the complex code into small chunks that are easier to understand
@reidainutilidade8743
@reidainutilidade8743 Год назад
I'm .NET Developer, and this Goland seem very cool. I want to learn a language to build simple projects, and Golang shoud be this language.
@Bluepaccao
@Bluepaccao Год назад
Wow. Coming from typescript this just looks amazing. I love how easy pointers look and also using a method on context to return a response to the client instead of actually returning, looks more clean IMO. I think I'm gonna learn golang this summer!
@simonjanca
@simonjanca Год назад
Well you're the first person thinking pointers are simple. Sounds you never had the opportunity... :D Yes, Golang is great and very fast language compared to JS or TS. But each has it's usage.
@publicalias8172
@publicalias8172 Год назад
@@simonjanca Wrong. Both Typescript and Javascript are a disease. Stop trying to spread your propaganda.
@plasmahvh
@plasmahvh 2 месяца назад
@@simonjanca pointers are very simple in go since there isn't any real arithmetic unlike C/C++
@eduardabramovich1216
@eduardabramovich1216 2 года назад
Great video. Hopefully you can implement a more complex project with Go, please.
@ceolantir317
@ceolantir317 Год назад
Hola from Siberian (lake Baikal)! Excellent presentation of the material, I sincerely thank you!
@ofirka991
@ofirka991 Год назад
Really nice tutorial. Very clear and helpful, thanks!
@hiranga
@hiranga Год назад
That was super crispy tutorial. Thanks! 💪🏾💪🏾💪🏾💪🏾💪🏾
@meshachdamilare
@meshachdamilare 2 года назад
Nice tutorial. I think you should continue with web dev series with go
@joshkjoby8400
@joshkjoby8400 Год назад
this is an excellent video. loved every minute of this video. thank you so much for this. Genuinely grateful
@casual_swag1116
@casual_swag1116 2 года назад
Thanks awesome video , now my server can handle million request of hello world 😀
@MrShag23
@MrShag23 16 дней назад
Was looking for a relevant tutorial this thought me everything I was looking for and didn't over complicate anything what through me off a bit was saying intended instead of indented 🤣
@speedTurtle
@speedTurtle 9 месяцев назад
Great explanation of the Go function syntax when dealing with routes, I personally find the boilerplate relating to errors confusing. Cleared a lot of that up but will rewatch for it to sink in.
@universecode1101
@universecode1101 2 года назад
This will be a great one ✌🏻
@nguyenben9587
@nguyenben9587 Год назад
thanks author, very clear and great video
@baboomka
@baboomka Год назад
this jumping garageband app icon is driving me crazy
@gncfhcnvc
@gncfhcnvc Год назад
Great video, inspired me to create a API
@briananeurysm3423
@briananeurysm3423 2 года назад
Very nice video hope you make an extension for this topic like connecting to sql or nosql database :D
@sivaganesh4489
@sivaganesh4489 Год назад
thanks dude, awesome explanation
@baw7198
@baw7198 2 года назад
Please more videos like this!
@tactiletech1111
@tactiletech1111 Год назад
good tut, thanks for the help!
@adamtak3128
@adamtak3128 2 года назад
Awesome. Could you please make more Go videos. Thanks
@swagathshetty
@swagathshetty 2 года назад
I think you should more advanced Go videos/course. There aren't any good go web dev content around
@jameshunt8828
@jameshunt8828 2 года назад
really man, specially beginer friendly
@alvin942
@alvin942 8 месяцев назад
Truee, im depressed about this😢
@dipanshumishra8901
@dipanshumishra8901 3 месяца назад
true! @@alvin942
@mehmetkaragoz8782
@mehmetkaragoz8782 Год назад
thanks for the tutorial!
@andriyabu
@andriyabu 2 года назад
Awesome bro 👏
@ihzbc
@ihzbc Год назад
this video saved my life !
@jameshunt8828
@jameshunt8828 2 года назад
Completed the video. Thanks for the amazung content. will there be next part;
@brnheavymetal
@brnheavymetal 2 года назад
More Golang content please
@AlbertoMiorin
@AlbertoMiorin Год назад
Am I the only one hearing "intended" rather than "indented"? Anyways, thanks for the video :)
@CodeWithRivandra
@CodeWithRivandra Месяц назад
Good stuff 👏
@hisurfer1
@hisurfer1 3 месяца назад
Thx for the nice tutorial. your explanation is on point, for my my level.... But question: Is your POST implementation thread safe? In other languages a concurrent POST request could lead to data lost.
@marcoortega4375
@marcoortega4375 7 месяцев назад
Thank you bro!
@abhishekkumarjha1526
@abhishekkumarjha1526 Год назад
Hi. It's a great tutorial. BTW can you create a tutorial to create an API to accept shell commands via query params/JSON body and return the output of the command?
@gopalmatcha4436
@gopalmatcha4436 4 месяца назад
thank you!
@sagarbarai
@sagarbarai 5 месяцев назад
Can you show how to organise routes into multiple files ? As well as directory structure.
@taiwenjin6211
@taiwenjin6211 Год назад
Nice tutorial! A quick question about the pointer usage in getTodo and getTodoById functions. The getTodoById returns the Todo Item pointer, but the context.IndentedJSON in getTodo function just use this pointer as the second parameter - context.IndentedJSON(http.StatusOK, todo), should it be context.IndentedJSON(http.StatusOK, *todo)?
@shafee1033
@shafee1033 Год назад
I don't understand why we need both or why we created two functions for these.
@engrSakir
@engrSakir 3 месяца назад
Thank you
@B02sucz3Q
@B02sucz3Q Год назад
DELETE method is missing ;). Good starting point for first steps. THX!
@AliAhmad-fx3dj
@AliAhmad-fx3dj Год назад
Thanks alot
@myeputrap8419
@myeputrap8419 Год назад
hallo, what framework do you use when doing this project ?
@LynX_amv572
@LynX_amv572 3 месяца назад
Amazing work, But can you Please create some full stack Projects using golang and React.js
@erickweil4580
@erickweil4580 Год назад
to do this todo we need to do a todo struct that will have the todo keys (I still need to do the todo keys in the todo struct), that is all we need to do. Feel free to do it yourself!
@sree_7956
@sree_7956 2 года назад
Can i have video on how to post request with stored procedure having Table valued parameter
@samuelprajasantosa435
@samuelprajasantosa435 Год назад
Following this tutorial, when doing a POST request, why is my status code showing 200 OK instead of 201 Created like shown in this tutorial?
@ethanjohnson1112
@ethanjohnson1112 2 года назад
Please make a series for Go! There is not many good resources for Go online. Maybe implement a database too such as SQL Server.
@pss_crs
@pss_crs 2 года назад
Watch this playlist if you don't met before he is explaining deeply tech stack including go and sql especially postgresql and match more ... ru-vid.com/group/PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE
@Yusuf-ok5rk
@Yusuf-ok5rk Год назад
@@pss_crs wow that channel is unbelievably amazing
@pss_crs
@pss_crs Год назад
@@Yusuf-ok5rk I'm glad it helps you
@BrandonLackey
@BrandonLackey Год назад
The part that baffles me is how would the todos array/slice ever get updated from the toggleTodoStatus func? The todo variable inside the func is getting updated but it never updates the todos array. So when you flip the status then call the getTodos func, you should get the original set of records all set to false. Perhaps I missed something lol.
@martinbenavides1932
@martinbenavides1932 Год назад
This is possible by pointers. func getTodoById returns a todo pointer(*), so when it gets updated in toggle func, it will automatically update that specific todo in the array. Look into pointers, so it'll make more sense
@Allyourneedsmet
@Allyourneedsmet 2 года назад
My man.!
@siyaram2855
@siyaram2855 2 года назад
Lalit, Can we have something on Elixir?
@antoniothomacelli
@antoniothomacelli Год назад
thanks
@abdu5822
@abdu5822 2 года назад
Please do a Golang crash course.
@adithyapaib
@adithyapaib 2 года назад
More Go tuts
@hos7012
@hos7012 Год назад
could we request more of go tuts
@rubendarioguarnizomartinez2765
How can I change title value with gin?
@chikaigue5278
@chikaigue5278 Год назад
Please help me out I am new to programming. I did exactly what you did and I got a 404 status page not
@StrikkiStrik
@StrikkiStrik Год назад
Just FYI, an array technically is not a valid JSON, should be an object instead, e.g. {"elements": [...]} vs just [...]
@drystack86
@drystack86 2 года назад
what is this syntax doing? ?--specifically the "*" ?
@golangcamp3340
@golangcamp3340 2 года назад
the "*" is pointing at the gin.Context package
@pss_crs
@pss_crs 2 года назад
Reference to pointer or deference from pointer its little confusing at the beginning if specially if come from higher level language like python or javascript do some online searches to a Pointers.
@drystack86
@drystack86 2 года назад
@@golangcamp3340 🙏
@brionlund2467
@brionlund2467 3 месяца назад
So this is a great tutorial, my only problem is your pronunciation of indented. You’re saying intended, which is a very different word and left me scratching my head a few times.
@InvincibleMan99
@InvincibleMan99 8 месяцев назад
Why item is json:title ?
@darwinapolinario483
@darwinapolinario483 2 года назад
why not Go fiber since most of us here came from node/express
@RyanKOnk
@RyanKOnk 2 года назад
Gin is more widely used and popular.
@adamtak3128
@adamtak3128 2 года назад
@@RyanKOnk I thought the standard library was most popular/used
@golangcamp3340
@golangcamp3340 2 года назад
@@RyanKOnk I fell that fiber is more popular
@solidev7702
@solidev7702 2 месяца назад
Like so ❤
@joao2890
@joao2890 Год назад
One more vídeo that someone put everything in a main file :/
@user-ch2sd6fm5l
@user-ch2sd6fm5l Месяц назад
this is word for word bar for bar the same video as tech with tim
@theriser8751
@theriser8751 3 месяца назад
not a REST API though
@frosty1433
@frosty1433 Год назад
Good tutorial but please stop saying intended jace-on. It’s INDENTED “jason”…
@Proviper666
@Proviper666 Год назад
context.IntendedJSON undefined (type *gin.Context has no field or method IntendedJSON)
@user-yi7rd8gp4k
@user-yi7rd8gp4k Год назад
Thank you
Далее
This Is The BEST Way To Structure Your GO Projects
11:08
Creating a JSON CRUD API in Go (Gin/GORM)
34:08
Просмотров 105 тыс.
Beginners Should Think Differently When Writing Golang
11:35
Building a CLI application with Golang
12:31
Просмотров 30 тыс.
What is a REST API?
9:12
Просмотров 1,4 млн
HTTPS, SSL, TLS & Certificate Authority Explained
43:29
Why I Use Golang In 2024
9:21
Просмотров 235 тыс.