SWIG/Examples/go/enum/
Wrapping enumerations
This example tests SWIG's ability to wrap enumerations.
-
Enum values are expressed as constants or variables in GO.
-
If the enum is named, then that name, capitalized, as defined as a new
type name for int. All the enum values will be defined to
have that type.
-
If the enum is declared at global level, then the name in Go is simply
the enum value, capitalized.
-
If the enum is declared within a C++ class or struct, then the name in
Go is the capitalized name of the class or struct followed by the
capitalized name of the enum value.
-