Lojhan @lojhan.com · Oct 20

Trying to learn a bit of golang as my company wants to adopt it incrementally for some projects. One thing that i find very common in c# world is to use unit of work to handle cases of distributed transactions. Is this a common thing in go? Are there other solutions? @eltonminetto.dev

5 likes 5 replies

?

Replies

Elton Minetto · Oct 20

Gostei da ideia, eu só tentaria eliminar o panic/recover da jogada

Lojhan · Oct 20

note: this is my first ever attemp to write golang code, probably it looks terrible but in a week or too it will look more alike real golang code as I learn the language

CodingPanda · Oct 20

Wait, this language looks familiar. Is it a modified version of another pre-existing language like Python or JavaScript? I’m still new to all this.

Lucas Badico | Dev, Mentor e Apaixonado por programação · Oct 20

It looks like something that we do a lot of time: We span goroutines, add the goroutine on the semaphore, and when that routines finish, remove the item from the semaphore.