Marc Nuri - Blogging about business and technology (Page 12/17)

Learn how to emulate enums in Go using custom types and constants. Enhance your enums with methods and code generation to simplify maintenance and add behavior.

Enums in Go: An Alternative approach

Learn how to implement sets in Go using maps. This lightweight guide explains how to create, manage, and use sets efficiently in your Go projects.

How to use sets in Go