Комментарии:
amazing
Ответитьthanks for the tutorial!
ОтветитьThere is no need to use json tags in the book struct as the IndentedJSON fucntion encodes the go structs into json itself.
Ответить@27.58, you could also use c.AbortWithStatudJson. Meanwhile thanks for this video. I learnt alot.
ОтветитьThanks for this
ОтветитьHello, which Go extension do you use? My json tags are not showing up.
ОтветитьGreat tutorial but, I was expecting you to test the API endpoints on applications like Postman. Apart from that I was hoping you would saperate things in folders like, Struct folders, Controller folders and Repository folders.
ОтветитьGreat awesome explanation
ОтветитьShort and simple tutorial. Great works Tim!
ОтветитьI was getting an error with curl localhost:8080/checkout?id=1 --request "PATCH"
zsh: no matches found: localhost:8080/checkout?id=1 but it worked when i added double quotes. curl "localhost:8080/checkout?id=1" --request "PATCH"
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.
ОтветитьThanks for this tutorial. That is a really great start to get the basics and continue from here!
Ответитьwhy are teaching stuff that you dont even know
ОтветитьMany thanks Tim.
ОтветитьCan anybody tell is gin framework a third party package or not ?
ОтветитьI dont know what settings to change but on go extension file, when I save a file, it automatically removed all the unused imports.
I dont know where to turn this off on VSCode
Thank you for this tutorial
Ответитьgreat video, thanks
Ответитьgreat job!
Ответитьso why do we need to type "example/" in command go mod init and what exactly "example" is ? 😃
ОтветитьThe splatting operator '@' cannot be used to
| reference variables in an expression. '@body'
| can be used only as an argument to a command.
What does this error mean?
Not bad but in the dev process it has documentation and tests ... where are they ... it is important and it miss
ОтветитьAhhh this paid promotion thing is so annoying.. it hides content as I'm watching from TV..
ОтветитьAmazing, thanks!
ОтветитьThanks for that, Tim!
ОтветитьIf I am not using gin, how else can I bind the json to the object?
ОтветитьReally curious about why you made the struct'd Id field a string vs. an int or other 'actual' numeric value? :)
ОтветитьNice tutorial but won't these frameworks weaken our programming skills?
Ответитьcan you implement json api spec?
ОтветитьWhy almost every tutorial is with gin or some other framework. Why there is no simple go tutorial, without any extra frameworks etc.
Ответитьgreat tutorial, but it's easy for me
ОтветитьUg. Sponsor:(
ОтветитьSurprisingly I could not use curl to do a PATCH request, whereas it's possible for any other request. It was only available when I used Postman or Insomnia to do the PATCH request, so strange...
ОтветитьGin not good for large scale application? Which do u recommend?
ОтветитьNice introduction! Thanks!
ОтветитьI'd love to see more Go tutorials! Concurrency, databases, etc.
ОтветитьExcellent demonstration
ОтветитьI wish this made sense to me. It is very convoluted.
Ответить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!
simple and straight foward.
ОтветитьI cannot for the life of me get the POST to work. I'm using Windows and the VSC terminal, but I get either "bad request" or "splatting not allowed errors". I have tried everything from escaping the @ to trying to just use Invoke-WebRequest instead. I don't know how to get it to work. Running it as Tim has his code gives the splatting not allowed error, which is from Windows' Invoke, but even removing cURL as an alias doesn't work. I've been at this for 5 hours now, and tried ever SO workaround I can find, nothing works. If anyone knows a trick to get this to work I would be ever grateful!
Finally got it working, I don't know what I changed that fixed it, all I know is that part of the fix was using cmd and not PowerShell. Other than that, I honestly can't say. It wasn't working, and then it was.
😕
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!
Ответитьyes
ОтветитьGO is so sick. Would love to see an advanced tutorial
ОтветитьI'm waiting for assembly tutorial 🤟🤟🤣
Ответить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
ОтветитьAnother seriously great tutorial...... thanks Tim
ОтветитьGreat video but Java and Python will always rule over the others
Ответить