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