Learn Go by building small projects - P01E01 Fetch External Api with the Http packages

  Рет қаралды 20,126

EQuimper

EQuimper

Күн бұрын

Пікірлер: 35
@septrabbit1068
@septrabbit1068 3 жыл бұрын
Your account and NHL api. Guessed you are Quebecois before watching, and heard about that in the video. ^^. Merci beaucoup de votre videos.
@EQuimper
@EQuimper 3 жыл бұрын
Oui Quebec :) Merci
@avinashyadav1
@avinashyadav1 4 жыл бұрын
Good to see you back:)
@seanknowles5309
@seanknowles5309 4 жыл бұрын
Hey Bro absolutely loving your videos, would love to get a complete course that covers the following: Golang, Fiber, NextJS, Crud, Auth, Social Auth and Hosting the complete project. I am still at a loss after I have a fiber api and a next frontend to deploy and tie it all together would be nice. The app could a basic crud app that covers a Todo list and Realtime chat or something, but covers the for mentioned features. :)
@khashe
@khashe 4 жыл бұрын
Love your Go vids!
@luisz0339
@luisz0339 3 жыл бұрын
Great video! But I'm having one problem at the very end. When I try print the team names in the for ranges loop, it tells me that "team.Name" is undifined for some reason. Any help with that?
@EQuimper
@EQuimper 3 жыл бұрын
Do you have the code on github do I can take a look?
@luisz0339
@luisz0339 3 жыл бұрын
@@EQuimper I shared it multiple times but it gets erase :/ Check your spam messages
@EQuimper
@EQuimper 3 жыл бұрын
Tomorrow morning I will take a look. Sorry the weekend I was with the kids
@EQuimper
@EQuimper 3 жыл бұрын
Can't see the github link. My spams are empty. Can you join my discord to send it to me. Look like youtube don't like it.
@gozkill3r
@gozkill3r 4 жыл бұрын
Thanks a lot for the content. Im having issues. in example that resource returns a "Teams[]" so it becomes like | Teams Team[] ` json:"teams" ` | But what if another resource just returns a slice(like with no type). Its says something like: 'cannot unmarshal array into Go value of type package.type' Learning a lot , thanks again
@EQuimper
@EQuimper 4 жыл бұрын
Hey thank you for the words. Umh can you show me an example. In go you need to type all this. So if you need another ressources that mean a new struct for the unmarshal part
@gozkill3r
@gozkill3r 4 жыл бұрын
@@EQuimper Hey thanks for answer, I just solved it :) on nlhTeamsResponse type, Teams []Team `json:"Teams"`, So it becomes like inplicit?... to know it'ill recevice a Teams Slice(Team[]) (from nhl API) but from this resource : jsonplaceholder.typicode.com/todos/ u get like a slice([]) with no type, so i had to point exactly on Decoding part like so: type respTodos struct { Todos []Todo } err = json.NewDecoder(res.Body).Decode($response.Todos)
@SHELLAC85
@SHELLAC85 4 жыл бұрын
@@gozkill3r Hi can you explain this a bit more? Im using "jsonplaceholder.typicode.com/users" and I wasn't getting any error but nothing was being returned. Then I saw your comment and I changed err = json.NewDecoder(res.Body).Decode(&response) to err = json.NewDecoder(res.Body).Decode(&response.Users) but now Im getting this error: "cannot unmarshal object into Go value of type []gitapistuff.User". Any idea what else i need to do? tKS
@SHELLAC85
@SHELLAC85 4 жыл бұрын
@@gozkill3r Fixed it. Thanks to you comment though. In the end I had to change res, err := http.Get(fmt.Sprintf("%s/users", baseURL)) to res, err := http.Get(fmt.Sprintf(baseURL))
@gozkill3r
@gozkill3r 4 жыл бұрын
@@SHELLAC85 I was just about to check out my codes. Glad u fixed it :).
@पापानटोले
@पापानटोले 4 жыл бұрын
Excellent. Can you recommend practice projects where Go is used primarily used on server side? Not just calling some other API?
@EQuimper
@EQuimper 4 жыл бұрын
Sure, you can build something like a social media etc :)
@iam_ya7
@iam_ya7 4 жыл бұрын
Great video thanks dude 🤙
@husenpeerkataraki9720
@husenpeerkataraki9720 3 жыл бұрын
Wow nice project sir
@EQuimper
@EQuimper 3 жыл бұрын
Thank you
@irrefl1672
@irrefl1672 4 жыл бұрын
Happy New Year.
@EQuimper
@EQuimper 4 жыл бұрын
Thank you. You too
@startbuild4217
@startbuild4217 4 жыл бұрын
Ty for your videos
@Viruhemanth
@Viruhemanth 4 жыл бұрын
is this weekly or daily uploads? btw finished ur podcast series. Learnt a lot from you. Thank you so much _/\_. Please share your best practices often.
@EQuimper
@EQuimper 4 жыл бұрын
Hey thank you. Sorry this wasn’t finish but this will be a course. The livestreaming is hard but I think this kind of project we can learn a lot :)
@EightSixx
@EightSixx 4 жыл бұрын
please make more golang stuff!
@EQuimper
@EQuimper 4 жыл бұрын
Will do :)
@fresonn
@fresonn 4 жыл бұрын
Man, when will you start make more videos about GraphQl and Go? u promised
@EQuimper
@EQuimper 4 жыл бұрын
Will do in the coming weeks
@ibouniang4957
@ibouniang4957 4 жыл бұрын
Great !
@jasonshen
@jasonshen 4 жыл бұрын
great video thanks
@matiolsz
@matiolsz 3 жыл бұрын
sadly json from api have changed
DIY Golang Web Server: No Dependencies Needed!
25:04
Flo Woelki
Рет қаралды 12 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
Build a Microservice with Go #1 - Getting Started
16:19
Net Ninja
Рет қаралды 59 М.
Consume RESTful API Endpoints Within A Golang Application
9:57
The Polyglot Developer
Рет қаралды 41 М.
EVERYTHING You SHOULD know about Go Modules (Go Basics #8)
22:08
4 Problems with Eloquent Soft Deletes (and Two Alternatives)
9:05
Laravel Daily
Рет қаралды 11 М.
Microservices are Technical Debt
31:59
NeetCodeIO
Рет қаралды 692 М.
Go + Microservices = Go Kit [I] - Peter Bourgon, Go Kit
38:49
CNCF [Cloud Native Computing Foundation]
Рет қаралды 103 М.
How To Setup A Golang + Templ Project Structure
31:20
Anthony GG
Рет қаралды 56 М.
Golang Bubble Tea - Fetch HTTP Responses | Part II
17:07
Charm CLI
Рет қаралды 10 М.
Building Real-time Apps with Go | Azim Pulat
54:58
Azim Pulat
Рет қаралды 60 М.