{% code type Selection int const ( Git Selection = iota List About Config ) %} {% code type GitSelection int const ( Readme GitSelection = iota Log Summary Refs Tree ) %} {% func insertIfEqual(s, d any) %}{% if s == d %} selected{% endif %}{% endfunc %} {% func Navbar (s Selection) %} {% endfunc %} {% func GitItemNav (name string, s GitSelection) %} {% endfunc %}