diff --git a/tpl/macro.twig b/tpl/macro.twig index 6d1c060..209a309 100644 --- a/tpl/macro.twig +++ b/tpl/macro.twig @@ -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