Forest_Client/Tool/Luban/Luban.ClientServer/Templates/common/go/enum.tpl

15 lines
268 B
Smarty
Raw Normal View History

2024-06-12 15:01:54 +08:00
{{~
name = x.name
namespace_with_top_module = x.namespace_with_top_module
comment = x.comment
items = x.items
~}}
package {{x.top_module}}
const (
{{~for item in items ~}}
{{x.go_full_name}}_{{item.name}} = {{item.int_value}}
{{~end~}}
)