Learn Go by building small projects - P01E02 Using Goroutines/Channels & WaitGroup

  Рет қаралды 3,044

EQuimper

EQuimper

Күн бұрын

Пікірлер: 13
@wij8044
@wij8044 3 жыл бұрын
Best place to start learning Go (aside from the documentation)! Thank you!
@adamkarafyllidis9264
@adamkarafyllidis9264 4 жыл бұрын
I'm in love with Golang! Nice teaching style also! I'd love to work with you as a junior dev haha
@devixrootix
@devixrootix 4 жыл бұрын
Very helpful content. Keep it up 👍👍
@JasonJA88
@JasonJA88 4 жыл бұрын
Please do a video on uploading your project... i don't know what to do with the binary is it like PHP where i can just put it on the server? plus i cant really get the cross compile to work like in the documentation
@EQuimper
@EQuimper 4 жыл бұрын
What do you mean ? You talk about deploying this on a server ?
@JasonJA88
@JasonJA88 4 жыл бұрын
@@EQuimper Yes... I've heard that GO can run anywhere and i don't really understand what to do with the binary. Love your content really helped me.
@EQuimper
@EQuimper 4 жыл бұрын
Sure I can do a video about that.
@AlfredLotsu
@AlfredLotsu Жыл бұрын
Hi, I know I'm 3 years late. But if you want to run your binary on a server, your best bet would be docker
@PriyankBolia
@PriyankBolia 4 жыл бұрын
I think you should have put wait in the main loop and make display a go routine to make it more clear, anyway its personal preference. I like to say in my main loop, that I am waiting for the go routines to finish.
@EQuimper
@EQuimper 4 жыл бұрын
I see, yes I can have done this. I do this on some of my others code. But yes I think would have been much more clear this way. And yes for the go routine on the display I think it's a good idea. Coming from node etc, I always think of goroutine like promise. I know it's not the same but I do use them at the same place. So because the display are sync for me didn't make sense to add those. But yes I see what you mean. I will try and maybe do a new video where I talk about those fixes. Thank you As you can see I'm not an expert on go. I just want to share knowledge to the newcomer cause I feel golang miss so many tutorial online so it's hard to get into
@PriyankBolia
@PriyankBolia 4 жыл бұрын
@@EQuimper There is no correct or wrong way. I just mentioned it, because it made me confuse to put wait in another go routine, as I thought the main loop will still exit, and when you put a display function which is blocking due to range on channel, than I understood, how it will finally work. As I am also not an expert, and it made me confuse, so for beginners I think its better to wait for all go routines in the main thread and all parallel tasks should be done in a go routine to be clear.
@jingli2168
@jingli2168 3 жыл бұрын
It is not an idiomatic way to log.Fatal(err) in the go routine.
Learn Go by building small projects - P02Intro
5:01
EQuimper
Рет қаралды 1 М.
Introduction to Fiber - An Express-inspired web framework
44:56
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
Advanced Golang: Limiting Goroutines
7:31
Code With Ryan
Рет қаралды 30 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
How to use the Go Fiber JWT middleware
22:21
EQuimper
Рет қаралды 15 М.
Introduction to ent. ORM Series: Intro and Series Plan
11:43
Introduction to SQLC and how to use it with Fiber
55:03
EQuimper
Рет қаралды 8 М.
Network Automation - Python/Paramiko
33:32
HacKiT
Рет қаралды 51
Create CSV With Go
11:52
Bphil
Рет қаралды 41