Gradually adding support for all features

This commit is contained in:
Pavel Shevaev 2022-12-08 11:46:13 +03:00
parent f54fcebd8c
commit d3473d961f
1 changed files with 1 additions and 1 deletions

View File

@ -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