// Code generated by qtc from "navbar.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line navbar.qtpl:1 package templates //line navbar.qtpl:1 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line navbar.qtpl:1 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line navbar.qtpl:2 type Selection int const ( Git Selection = iota List About Config ) //line navbar.qtpl:12 type GitSelection int const ( Readme GitSelection = iota Log Summary Refs Tree ) //line navbar.qtpl:22 func streaminsertIfEqual(qw422016 *qt422016.Writer, s, d any) { //line navbar.qtpl:22 if s == d { //line navbar.qtpl:22 qw422016.N().S(` selected`) //line navbar.qtpl:22 } //line navbar.qtpl:22 } //line navbar.qtpl:22 func writeinsertIfEqual(qq422016 qtio422016.Writer, s, d any) { //line navbar.qtpl:22 qw422016 := qt422016.AcquireWriter(qq422016) //line navbar.qtpl:22 streaminsertIfEqual(qw422016, s, d) //line navbar.qtpl:22 qt422016.ReleaseWriter(qw422016) //line navbar.qtpl:22 } //line navbar.qtpl:22 func insertIfEqual(s, d any) string { //line navbar.qtpl:22 qb422016 := qt422016.AcquireByteBuffer() //line navbar.qtpl:22 writeinsertIfEqual(qb422016, s, d) //line navbar.qtpl:22 qs422016 := string(qb422016.B) //line navbar.qtpl:22 qt422016.ReleaseByteBuffer(qb422016) //line navbar.qtpl:22 return qs422016 //line navbar.qtpl:22 } //line navbar.qtpl:24 func StreamNavbar(qw422016 *qt422016.Writer, s Selection) { //line navbar.qtpl:24 qw422016.N().S(` `) //line navbar.qtpl:39 } //line navbar.qtpl:39 func WriteNavbar(qq422016 qtio422016.Writer, s Selection) { //line navbar.qtpl:39 qw422016 := qt422016.AcquireWriter(qq422016) //line navbar.qtpl:39 StreamNavbar(qw422016, s) //line navbar.qtpl:39 qt422016.ReleaseWriter(qw422016) //line navbar.qtpl:39 } //line navbar.qtpl:39 func Navbar(s Selection) string { //line navbar.qtpl:39 qb422016 := qt422016.AcquireByteBuffer() //line navbar.qtpl:39 WriteNavbar(qb422016, s) //line navbar.qtpl:39 qs422016 := string(qb422016.B) //line navbar.qtpl:39 qt422016.ReleaseByteBuffer(qb422016) //line navbar.qtpl:39 return qs422016 //line navbar.qtpl:39 } //line navbar.qtpl:41 func StreamGitItemNav(qw422016 *qt422016.Writer, name, ref string, s GitSelection) { //line navbar.qtpl:41 qw422016.N().S(`