• Ethan@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 months ago

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