Gradually adding support for all features
This commit is contained in:
parent
f54fcebd8c
commit
d3473d961f
|
@ -31,7 +31,7 @@ func (*{{o.name}}) CLASS_NAME() string {
|
|||
return "{{o.name}}"
|
||||
}
|
||||
func (*{{o.name}}) DEFAULT_VALUE() int32 {
|
||||
return %default_enum_value%
|
||||
return {{o.values|first}}
|
||||
}
|
||||
func (self *{{o.name}}) IsValid() bool {
|
||||
return sort.SearchInts(_{{o.name}}_values, int(*self)) != -1
|
||||
|
|
Loading…
Reference in New Issue