📝Get your *FREE Golang Cheat Sheet* - golangdojo.com/cheatsheet
@haithem8906
3 жыл бұрын
this solution doesn't really solve the "sending multiple ninjas after the treasure", because the ninjas are going to make the requests, but just not telling the group that it has found it when someone else already did.
@GolangDojo
3 жыл бұрын
Great catch! Maybe a change of the function name to something like "startTreasureMission" would be a better fit. Thanks for bringing this up!
@o.k.9142
2 жыл бұрын
Sweet! Very helpful series to recap the basics in my case. Thank you 🙏
@mohsanabbas6835
3 жыл бұрын
Video on Context cancellations and graceful shutdown please.
@GolangDojo
3 жыл бұрын
Context tutorials are in the pipeline!
@farzadmf
3 жыл бұрын
Don't know if you created the intro and outro clips yourself, but they're LOVELY! I can't help myself, every time I see the intro clip, it makes me laugh.
@GolangDojo
3 жыл бұрын
Hahaha I did so thank you! Glad you are digging it :)
@farzadmf
3 жыл бұрын
I'm curious; what's the sound at the beginning? I'm guessing you didn't do it yourself 😝, did you?
@Ryhamz
3 жыл бұрын
Great content! I'm going to look up whether "once" is one time ever or once within that goroutine. I wonder how they implement "once" within the language. perhaps they pair a variable times_called that goes up with a pointer to the function, but that's a total guess.
@GolangDojo
3 жыл бұрын
It's for one or more goroutines. And yes! Indicated by an uint32 that is protected by sync.Atomic (explained as well in detail soon :))
@dylankawalec3517
3 жыл бұрын
If you need help making your cheat sheet, I can help build it out with you.
@GolangDojo
3 жыл бұрын
It's out now! You may need to input a different email though. Pardon the technical difficulty
@kaushik5055
3 жыл бұрын
👍
@larrasket
Жыл бұрын
This example does not show the advantage of using Once. Actually there is a better & more efficient solution for this problem, that is just break out of the loop once missionCompleted is accrued.
@devnull6320
3 жыл бұрын
I learnt go in 1 day, wrote my first program to grab some info from the kernel, lost hours on concurrency, i lost, f, my program just works fine without.
@norexus007
2 жыл бұрын
"If that is something you fancy make sure to give the subscribe button, (taps twice on the table and smiles), a nice little tap!" 😉
Пікірлер: 23