enum.sbn 386 B

12345678910111213141516171819
  1. {{~if ___top_module != ''~}}
  2. package {{__top_module}};
  3. {{~end~}}
  4. {{~if __this.comment != '' ~}}
  5. /**
  6. * {{escape_comment __this.comment}}
  7. */
  8. {{~end~}}
  9. const (
  10. {{~ for item in __this.items ~}}
  11. {{~if item.comment_or_alias != '' ~}}
  12. /**
  13. * {{escape_comment item.comment_or_alias}}
  14. */
  15. {{~end~}}
  16. {{full_name __this}}_{{item.name}} = {{item.int_value}};
  17. {{~end~}}
  18. )