multiple constants




    Go Code Snippets

    The declaration in the code is an enum type, meaning that it defines a set of constants that can be assigned one of a limited number of values. In this case, the enum includes the two constants name and value.

    Shortcut: cos

    const (
      name = value
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    • Security
    • Privacy Policy
    • Code Privacy
    • Terms of Service
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.