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!
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.
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.
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 🤣
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.
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.
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!
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.
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.
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
Watch this playlist if you don't met before he is explaining deeply tech stack including go and sql especially postgresql and match more ... ua-cam.com/play/PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE.html
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)?
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?
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.
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!
I'm glad how you break down the complex code into small chunks that are easier to understand
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!
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.
@@simonjanca Wrong. Both Typescript and Javascript are a disease. Stop trying to spread your propaganda.
@@simonjanca pointers are very simple in go since there isn't any real arithmetic unlike C/C++
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.
this jumping garageband app icon is driving me crazy
Hola from Siberian (lake Baikal)!
Excellent presentation of the material, I sincerely thank you!
the best and straightforward api video in golang. Thank you a lot
Thanks awesome video , now my server can handle million request of hello world 😀
Can you show how to organise routes into multiple files ? As well as directory structure.
Great video. Hopefully you can implement a more complex project with Go, please.
I think you should more advanced Go videos/course. There aren't any good go web dev content around
really man, specially beginer friendly
Truee, im depressed about this😢
true!
@@alvin942
great video, thanks for the overview of the golanf backend
Nice tutorial.
I think you should continue with web dev series with go
this is an excellent video. loved every minute of this video. thank you so much for this. Genuinely grateful
More Golang content please
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.
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 🤣
Very nice video hope you make an extension for this topic like connecting to sql or nosql database :D
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.
Awesome. Could you please make more Go videos. Thanks
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.
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!
Am I the only one hearing "intended" rather than "indented"? Anyways, thanks for the video :)
That was super crispy tutorial. Thanks! 💪🏾💪🏾💪🏾💪🏾💪🏾
hallo, what framework do you use when doing this project ?
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?
How can I change title value with gin?
Really nice tutorial. Very clear and helpful, thanks!
Can i have video on how to post request with stored procedure having Table valued parameter
Completed the video. Thanks for the amazung content. will there be next part;
Why item is json:title ?
thanks dude, awesome explanation
Please help me out I am new to programming. I did exactly what you did and I got a 404 status page not
Great video, inspired me to create a API
This will be a great one ✌🏻
Being pedantic, but it is indented, not intended.
thanks author, very clear and great video
could we request more of go tuts
what is this syntax doing? ?--specifically the "*" ?
the "*" is pointing at the gin.Context package
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.
@@clemi_mix 🙏
Lalit, Can we have something on Elixir?
DELETE method is missing ;). Good starting point for first steps. THX!
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.
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
Please make a series for Go! There is not many good resources for Go online. Maybe implement a database too such as SQL Server.
Watch this playlist if you don't met before he is explaining deeply tech stack including go and sql especially postgresql and match more ...
ua-cam.com/play/PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE.html
@@pss_crs wow that channel is unbelievably amazing
@@Yusuf-ok5rk I'm glad it helps you
this video saved my life !
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)?
I don't understand why we need both or why we created two functions for these.
good tut, thanks for the help!
Please more videos like this!
Awesome bro 👏
why not Go fiber since most of us here came from node/express
Gin is more widely used and popular.
@@RyanKOnk I thought the standard library was most popular/used
@@RyanKOnk I fell that fiber is more popular
Amazing work, But can you Please create some full stack Projects using golang and React.js
Just FYI, an array technically is not a valid JSON, should be an object instead, e.g. {"elements": [...]} vs just [...]
thanks for the tutorial!
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?
Please do a Golang crash course.
Good stuff 👏
Thank you bro!
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.
Good video
More Go tuts
thank you!
Thank you
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!
Thanks alot
thanks
this is word for word bar for bar the same video as tech with tim
My man.!
not a REST API though
Like so ❤
Good tutorial but please stop saying intended jace-on. It’s INDENTED “jason”…
context.IntendedJSON undefined (type *gin.Context has no field or method IntendedJSON)
Thank you