Vladimir Glavnyy 95004218f7 Fix multi-line comments for cpp enums (#5345) (#5346)
- fix CSharp comments generation
- fix Python comments generation
- fix Lua comments generation
- fix PHP comments generation
- fix Dart comments generation
- add brief description of Color enum
- add multi-line comments to the Monster:Color
2019-06-02 12:36:49 -07:00

37 lines
688 B
Go

// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package Example
import "strconv"
/// Composite components of Monster color.
type Color byte
const (
ColorRed Color = 1
/// \brief color Green
/// Green is bit_flag with value (1u << 1)
ColorGreen Color = 2
/// \brief color Blue (1u << 3)
ColorBlue Color = 8
)
var EnumNamesColor = map[Color]string{
ColorRed: "Red",
ColorGreen: "Green",
ColorBlue: "Blue",
}
var EnumValuesColor = map[string]Color{
"Red": ColorRed,
"Green": ColorGreen,
"Blue": ColorBlue,
}
func (v Color) String() string {
if s, ok := EnumNamesColor[v]; ok {
return s
}
return "Color(" + strconv.FormatInt(int64(v), 10) + ")"
}