Skip to content

Question: How to support camel case format #74

@godcong

Description

@godcong

How do I define ENUM to achieve this?

  1. The text in name is in lower case
  2. Int values in enumeration are case sensitive
const(
xxxDataSwap = iota
xxxBootNode
)

__Name="dataswapbootnode"

Also, can I ignore Parse's error like this:

ParseXXX(name)Type{
    //return a default value
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions