Skip to main content
The 2024 Developer Survey results are live! See the results

New answers tagged

1 vote

Distributed locking with fencing token implementation in Golang

odd bit masks const LockState_LOCKED = 1 << 1 const LockState_UNLOCKED = 1 << 2 I don't understand what's going on here. Why not use a simple ...
J_H's user avatar
  • 30.8k
2 votes

Bird struct and other type of birds

This, to my eye, really isn't enough code to actually review as being a piece of go code. It's more a design review, of a hypothetical/learning exercise. In that sense, it's not really code one would ...
Elias Van Ootegem's user avatar
2 votes

Golang Optimize Unzipping FiIes

(It's going to be difficult to actually try this code, since it's not self-contained. Better to have either a single file that can be run directly, or link a repository that can be cloned and built as-...
ferada's user avatar
  • 11.1k

Top 50 recent answers are included