baggiiiie

~

/

zettelkasten

/

go bit wise operator

go-bit-wise-operator

Dec 08, 2025

  • learning
  • tbc

untitled

tags: learning tbc

content

  • https://grok.com/share/c2hhcmQtNA_d87194dd-07f6-4652-8023-92826344c419
  • apparently you can do this:
const (
	FlagRead = 1 << 0 // 0001 
	FlagWrite = 1 << 1 // 0010 
	FlagExecute = 1 << 2 // 0100 
	FlagDelete = 1 << 3 // 1000 
)

up

down

reference


Graph View

  • untitled
  • content
  • up
  • down
  • reference

Backlinks

  • go-bitmask-check
  • go-why-use-bit-wise-iota

baggiiiie's learning notes on tech stuff