This post provides a quick introduction to iota in Go, explaining its usage with enums and const, as well as creating bitmasks using iota.

2m read timeFrom bitfieldconsulting.com
Post cover image
Table of contents
iota and enumsUsing iota with constStarting iota at 1iota skips commentsiota , flags, and bitmasks

Sort: