• @[email protected]
    link
    fedilink
    23 months ago

    As far as I was aware Go didn’t have enums and this

    const()
    

    Pattern is just a weird thing people do because it behaves like an enum?

    • Ethan
      link
      English
      43 months ago

      You are correct, Go doesn’t have enums. The const thing is a widely accepted pattern for approximating enums.