• Ethan@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    2 年前

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