Go API Tutorial - Make An API With Go

Go API Tutorial - Make An API With Go

Tech With Tim

2 года назад

167,116 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Kabir Sanatani
Kabir Sanatani - 08.09.2023 18:15

amazing

Ответить
Prakarang Sa-ngamatong
Prakarang Sa-ngamatong - 14.08.2023 18:40

thanks for the tutorial!

Ответить
Pranav Sharma
Pranav Sharma - 19.07.2023 13:05

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

Ответить
Paschal Okafor
Paschal Okafor - 15.07.2023 09:43

@27.58, you could also use c.AbortWithStatudJson. Meanwhile thanks for this video. I learnt alot.

Ответить
Acron Project
Acron Project - 27.06.2023 23:16

Thanks for this

Ответить
My Tralala
My Tralala - 11.06.2023 18:10

Hello, which Go extension do you use? My json tags are not showing up.

Ответить
Siya Ram
Siya Ram - 06.06.2023 16:40

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.

Ответить
Manish Kumar Singh
Manish Kumar Singh - 04.06.2023 21:38

Great awesome explanation

Ответить
Michal Spišiak
Michal Spišiak - 02.04.2023 21:24

Short and simple tutorial. Great works Tim!

Ответить
Red Rum
Red Rum - 02.04.2023 16:34

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"

Ответить
sazey
sazey - 11.01.2023 17:50

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.

Ответить
LassePhlipsson
LassePhlipsson - 19.12.2022 10:58

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

Ответить
test test
test test - 15.12.2022 17:04

why are teaching stuff that you dont even know

Ответить
Shane Oh
Shane Oh - 27.11.2022 13:39

Many thanks Tim.

Ответить
Brahm Karan Singh
Brahm Karan Singh - 21.11.2022 20:53

Can anybody tell is gin framework a third party package or not ?

Ответить
Rishi
Rishi - 21.11.2022 16:55

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

Ответить
Tiqqle
Tiqqle - 24.10.2022 03:52

Thank you for this tutorial

Ответить
pedro miguel
pedro miguel - 21.10.2022 20:07

great video, thanks

Ответить
Utkan Gul
Utkan Gul - 19.10.2022 01:41

great job!

Ответить
Danang Jehan
Danang Jehan - 18.10.2022 03:13

so why do we need to type "example/" in command go mod init and what exactly "example" is ? 😃

Ответить
Tega Creatives
Tega Creatives - 10.10.2022 20:30

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?

Ответить
chuibete
chuibete - 02.10.2022 15:50

Not bad but in the dev process it has documentation and tests ... where are they ... it is important and it miss

Ответить
Unicorn
Unicorn - 22.09.2022 18:40

Ahhh this paid promotion thing is so annoying.. it hides content as I'm watching from TV..

Ответить
Dominique Paul
Dominique Paul - 20.09.2022 16:18

Amazing, thanks!

Ответить
Allan Johnson
Allan Johnson - 08.09.2022 03:57

Thanks for that, Tim!

Ответить
Ishan Sinha
Ishan Sinha - 25.07.2022 11:22

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

Ответить
Scott K. Fraley
Scott K. Fraley - 13.07.2022 21:07

Really curious about why you made the struct'd Id field a string vs. an int or other 'actual' numeric value? :)

Ответить
Ram Abdullah Fernandez
Ram Abdullah Fernandez - 13.06.2022 21:17

Nice tutorial but won't these frameworks weaken our programming skills?

Ответить
Umar Alfaruq
Umar Alfaruq - 06.05.2022 17:29

can you implement json api spec?

Ответить
helloworld
helloworld - 02.05.2022 21:18

Why almost every tutorial is with gin or some other framework. Why there is no simple go tutorial, without any extra frameworks etc.

Ответить
xin Eric
xin Eric - 27.04.2022 07:21

great tutorial, but it's easy for me

Ответить
FPChris
FPChris - 26.04.2022 17:05

Ug. Sponsor:(

Ответить
Beaumont Yun
Beaumont Yun - 26.04.2022 14:06

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...

Ответить
sunday felicity agbo
sunday felicity agbo - 22.04.2022 18:39

Gin not good for large scale application? Which do u recommend?

Ответить
Abdullah Raihan Bhuiyan
Abdullah Raihan Bhuiyan - 12.04.2022 07:47

Nice introduction! Thanks!

Ответить
gogopher
gogopher - 10.04.2022 02:56

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

Ответить
Umesh Nikam
Umesh Nikam - 07.04.2022 09:43

Excellent demonstration

Ответить
Connor Keenum
Connor Keenum - 21.03.2022 05:09

I wish this made sense to me. It is very convoluted.

Ответить
CH0WDERZ
CH0WDERZ - 19.03.2022 18:54

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!

Ответить
James Mwangi
James Mwangi - 27.02.2022 15:19

simple and straight foward.

Ответить
Wayne Das
Wayne Das - 15.02.2022 23:36

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.
😕

Ответить
Moccar
Moccar - 06.02.2022 18:40

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!

Ответить
tech with zaitri
tech with zaitri - 02.02.2022 15:12

yes

Ответить
Grant Wells
Grant Wells - 30.01.2022 03:33

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

Ответить
Lucia Ravazzi
Lucia Ravazzi - 29.01.2022 21:53

I'm waiting for assembly tutorial 🤟🤟🤣

Ответить
Lucia Ravazzi
Lucia Ravazzi - 29.01.2022 21:45

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

Ответить
Young Scientist Academy
Young Scientist Academy - 29.01.2022 19:22

Another seriously great tutorial...... thanks Tim

Ответить
Op Con
Op Con - 29.01.2022 16:02

Great video but Java and Python will always rule over the others

Ответить