From d3473d961f8acc53d4ede5d393525f1b26b58193 Mon Sep 17 00:00:00 2001 From: Pavel Shevaev Date: Thu, 8 Dec 2022 11:46:13 +0300 Subject: [PATCH] Gradually adding support for all features --- tpl/macro.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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