{% import "context" %} {% code type Selection int const ( Git Selection = iota List About Config Login ) %} {% 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 (ctx context.Context, s Selection) %} {% endfunc %} {% func GitItemNav (name, ref string, s GitSelection) %}