Build a Rest API with GoLang

  Рет қаралды 121,025

Laith Academy

Laith Academy

Күн бұрын

Пікірлер: 84
@aloSolo
@aloSolo 9 ай бұрын
I'm glad how you break down the complex code into small chunks that are easier to understand
@Bluepaccao
@Bluepaccao 2 жыл бұрын
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 7 ай бұрын
@@simonjanca pointers are very simple in go since there isn't any real arithmetic unlike C/C++
@ceolantir317
@ceolantir317 2 жыл бұрын
Hola from Siberian (lake Baikal)! Excellent presentation of the material, I sincerely thank you!
@casual_swag1116
@casual_swag1116 2 жыл бұрын
Thanks awesome video , now my server can handle million request of hello world 😀
@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.
@baboomka
@baboomka 2 жыл бұрын
this jumping garageband app icon is driving me crazy
@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 Жыл бұрын
Truee, im depressed about this😢
@dipanshumishra8901
@dipanshumishra8901 8 ай бұрын
true! @@alvin942
@MrShag23
@MrShag23 5 ай бұрын
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 🤣
@eduardabramovich1216
@eduardabramovich1216 2 жыл бұрын
Great video. Hopefully you can implement a more complex project with Go, please.
@meshachdamilare
@meshachdamilare 2 жыл бұрын
Nice tutorial. I think you should continue with web dev series with go
@hisurfer1
@hisurfer1 8 ай бұрын
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.
@hiranga
@hiranga 2 жыл бұрын
That was super crispy tutorial. Thanks! 💪🏾💪🏾💪🏾💪🏾💪🏾
@sagarbarai
@sagarbarai 10 ай бұрын
Can you show how to organise routes into multiple files ? As well as directory structure.
@brnheavymetal
@brnheavymetal 2 жыл бұрын
More Golang content please
@joshkjoby8400
@joshkjoby8400 Жыл бұрын
this is an excellent video. loved every minute of this video. thank you so much for this. Genuinely grateful
@speedTurtle
@speedTurtle Жыл бұрын
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.
@briananeurysm3423
@briananeurysm3423 2 жыл бұрын
Very nice video hope you make an extension for this topic like connecting to sql or nosql database :D
@universecode1101
@universecode1101 2 жыл бұрын
This will be a great one ✌🏻
@ofirka991
@ofirka991 2 жыл бұрын
Really nice tutorial. Very clear and helpful, thanks!
@ihzbc
@ihzbc 2 жыл бұрын
this video saved my life !
@nguyenben9587
@nguyenben9587 Жыл бұрын
thanks author, very clear and great video
@sivaganesh4489
@sivaganesh4489 Жыл бұрын
thanks dude, awesome explanation
@gncfhcnvc
@gncfhcnvc 2 жыл бұрын
Great video, inspired me to create a API
@andriyabu
@andriyabu 2 жыл бұрын
Awesome bro 👏
@Samuftie
@Samuftie 3 ай бұрын
Thank you for your tutorial. I find it quite hard to follow your tutorial because you are not explaining why we need to do or how it is doing. For instance 8:52, why do we need the string literal? I know it is because we need to convert the incoming; but how does that string literal help? I'm very new to go, so probably it is obvious to some more-advanced people. I hope this feedback helps.
@adamtak3128
@adamtak3128 2 жыл бұрын
Awesome. Could you please make more Go videos. Thanks
@B02sucz3Q
@B02sucz3Q Жыл бұрын
DELETE method is missing ;). Good starting point for first steps. THX!
@AlbertoMiorin
@AlbertoMiorin Жыл бұрын
Am I the only one hearing "intended" rather than "indented"? Anyways, thanks for the video :)
@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!
@jameshunt8828
@jameshunt8828 2 жыл бұрын
Completed the video. Thanks for the amazung content. will there be next part;
@baw7198
@baw7198 2 жыл бұрын
Please more videos like this!
@mehmetkaragoz8782
@mehmetkaragoz8782 2 жыл бұрын
thanks for the tutorial!
@myeputrap8419
@myeputrap8419 Жыл бұрын
hallo, what framework do you use when doing this project ?
@tactiletech1111
@tactiletech1111 2 жыл бұрын
good tut, thanks for the help!
@CodeWithRivandra
@CodeWithRivandra 6 ай бұрын
Good stuff 👏
@samuelprajasantosa435
@samuelprajasantosa435 2 жыл бұрын
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?
@taiwenjin6211
@taiwenjin6211 2 жыл бұрын
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)?
@ichigokurasaki_33
@ichigokurasaki_33 2 жыл бұрын
I don't understand why we need both or why we created two functions for these.
@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
@marcoortega4375
@marcoortega4375 Жыл бұрын
Thank you bro!
@sree_7956
@sree_7956 2 жыл бұрын
Can i have video on how to post request with stored procedure having Table valued parameter
@LynX_amv572
@LynX_amv572 8 ай бұрын
Amazing work, But can you Please create some full stack Projects using golang and React.js
@InvincibleMan99
@InvincibleMan99 Жыл бұрын
Why item is json:title ?
@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 ... kzbin.info/aero/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
@StrikkiStrik
@StrikkiStrik Жыл бұрын
Just FYI, an array technically is not a valid JSON, should be an object instead, e.g. {"elements": [...]} vs just [...]
@rubendarioguarnizomartinez2765
@rubendarioguarnizomartinez2765 2 жыл бұрын
How can I change title value with gin?
@kirane5911
@kirane5911 26 күн бұрын
Good video
@BrandonLackey
@BrandonLackey 2 жыл бұрын
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
@brionlund2467
@brionlund2467 8 ай бұрын
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.
@engrSakir
@engrSakir 7 ай бұрын
Thank you
@gopalmatcha4436
@gopalmatcha4436 8 ай бұрын
thank you!
@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?
@hos7012
@hos7012 2 жыл бұрын
could we request more of go tuts
@roberto_camp
@roberto_camp 2 жыл бұрын
what is this syntax doing? ?--specifically the "*" ?
@clemi_mix
@clemi_mix 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.
@roberto_camp
@roberto_camp 2 жыл бұрын
@@clemi_mix 🙏
@siyaram2855
@siyaram2855 2 жыл бұрын
Lalit, Can we have something on Elixir?
@flipflap4673
@flipflap4673 2 ай бұрын
Nice one! The only thing, if you allow me, is that you don't know how to say "inDENTEDJson". Every time you say "inTENDED" ... two different words. Also you call the "var todos ...." an ARRAY, and forgive me if I'm wrong, it's a SLICE. I'm a noob so correct me if I'm wrong. Thanks for the nice explanation though!
@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
@clemi_mix
@clemi_mix 2 жыл бұрын
@@RyanKOnk I fell that fiber is more popular
@AliAhmad-fx3dj
@AliAhmad-fx3dj Жыл бұрын
Thanks alot
@abdu5822
@abdu5822 2 жыл бұрын
Please do a Golang crash course.
@Allyourneedsmet
@Allyourneedsmet 2 жыл бұрын
My man.!
@antoniothomacelli
@antoniothomacelli 2 жыл бұрын
thanks
@adithyapaib
@adithyapaib 2 жыл бұрын
More Go tuts
@OutdoorsWithMHM
@OutdoorsWithMHM 7 ай бұрын
Like so ❤
@120a00-q
@120a00-q 5 ай бұрын
this is word for word bar for bar the same video as tech with tim
@theriser8751
@theriser8751 8 ай бұрын
not a REST API though
@frosty1433
@frosty1433 2 жыл бұрын
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)
@ДенисМаценко-м2р
@ДенисМаценко-м2р Жыл бұрын
Thank you
Creating a JSON CRUD API in Go (Gin/GORM)
34:08
Coding with Robby
Рет қаралды 121 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,8 МЛН
Good teacher wows kids with practical examples #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 13 МЛН
龟兔赛跑:好可爱的小乌龟#short #angel #clown
01:00
Super Beauty team
Рет қаралды 64 МЛН
How To Structure Your Golang (API) Projects!?
20:28
Anthony GG
Рет қаралды 48 М.
Пишем REST API сервис на Go - УЛЬТИМАТИВНЫЙ гайд
2:57:51
Николай Тузов — Golang
Рет қаралды 132 М.
What is a REST API?
9:12
IBM Technology
Рет қаралды 1,5 МЛН
Why I Use Golang In 2024
9:21
ThePrimeTime
Рет қаралды 330 М.
JWT Authentication in Go (Gin/Gorm)
35:26
Coding with Robby
Рет қаралды 73 М.
Master Go Programming With These Concurrency Patterns (in 40 minutes)
46:15
The Golang Crash Course
1:43:20
Laith Academy
Рет қаралды 14 М.
The Terraform Crash Course
34:37
Laith Academy
Рет қаралды 7 М.
НАШЛА ДЕНЬГИ🙀@VERONIKAborsch
00:38
МишАня
Рет қаралды 2,8 МЛН