// Code generated by qtc from "gititemtree.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line gititemtree.qtpl:1 package templates //line gititemtree.qtpl:1 import "github.com/go-git/go-git/v5/plumbing/object" //line gititemtree.qtpl:3 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line gititemtree.qtpl:3 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line gititemtree.qtpl:4 type GitItemTreePage struct { CurrentPath string Tree *object.Tree // TODO: remove this since it can be passed by GitCommit Ref string Name string } //line gititemtree.qtpl:14 func (g *GitItemTreePage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { //line gititemtree.qtpl:14 StreamGitItemNav(qw422016, name, ref, Tree) //line gititemtree.qtpl:14 } //line gititemtree.qtpl:14 func (g *GitItemTreePage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { //line gititemtree.qtpl:14 qw422016 := qt422016.AcquireWriter(qq422016) //line gititemtree.qtpl:14 g.StreamNav(qw422016, name, ref) //line gititemtree.qtpl:14 qt422016.ReleaseWriter(qw422016) //line gititemtree.qtpl:14 } //line gititemtree.qtpl:14 func (g *GitItemTreePage) Nav(name, ref string) string { //line gititemtree.qtpl:14 qb422016 := qt422016.AcquireByteBuffer() //line gititemtree.qtpl:14 g.WriteNav(qb422016, name, ref) //line gititemtree.qtpl:14 qs422016 := string(qb422016.B) //line gititemtree.qtpl:14 qt422016.ReleaseByteBuffer(qb422016) //line gititemtree.qtpl:14 return qs422016 //line gititemtree.qtpl:14 } //line gititemtree.qtpl:16 func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer) { //line gititemtree.qtpl:16 qw422016.N().S(`