// 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 "git.gabrielgio.me/cerrado/pkg/u" //line gititemtree.qtpl:2 import "github.com/go-git/go-git/v5/plumbing/object" //line gititemtree.qtpl:4 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line gititemtree.qtpl:4 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line gititemtree.qtpl:4 type GitItemTreePage struct { Path []string Tree *object.Tree } //line gititemtree.qtpl:10 const ( Folder = "tree" Blob = "blob" Root = "" ) //line gititemtree.qtpl:17 func url(name, mode, ref, filename string, path []string) string { return u.Root(). AddPath(name). AddPath(mode). AddPath(ref). AddPaths(path). AddPath(filename). Done() } //line gititemtree.qtpl:28 func (g *GitItemTreePage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { //line gititemtree.qtpl:28 StreamGitItemNav(qw422016, name, ref, Tree) //line gititemtree.qtpl:28 } //line gititemtree.qtpl:28 func (g *GitItemTreePage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { //line gititemtree.qtpl:28 qw422016 := qt422016.AcquireWriter(qq422016) //line gititemtree.qtpl:28 g.StreamNav(qw422016, name, ref) //line gititemtree.qtpl:28 qt422016.ReleaseWriter(qw422016) //line gititemtree.qtpl:28 } //line gititemtree.qtpl:28 func (g *GitItemTreePage) Nav(name, ref string) string { //line gititemtree.qtpl:28 qb422016 := qt422016.AcquireByteBuffer() //line gititemtree.qtpl:28 g.WriteNav(qb422016, name, ref) //line gititemtree.qtpl:28 qs422016 := string(qb422016.B) //line gititemtree.qtpl:28 qt422016.ReleaseByteBuffer(qb422016) //line gititemtree.qtpl:28 return qs422016 //line gititemtree.qtpl:28 } //line gititemtree.qtpl:30 func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { //line gititemtree.qtpl:30 qw422016.N().S(`