// Code generated by qtc from "gititemtree.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/gititemtree.qtpl:1 package templates //line templates/gititemtree.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/u" //line templates/gititemtree.qtpl:2 import "github.com/go-git/go-git/v5/plumbing/object" //line templates/gititemtree.qtpl:3 import "github.com/go-git/go-git/v5/plumbing/filemode" //line templates/gititemtree.qtpl:5 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/gititemtree.qtpl:5 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/gititemtree.qtpl:5 type GitItemTreePage struct { Path []string Tree *object.Tree } //line templates/gititemtree.qtpl:11 const ( Folder = "tree" Blob = "blob" Root = "" ) //line templates/gititemtree.qtpl:18 func url(name, mode, ref, filename string, path []string) string { return u.NewPathing(). AddPath(name). AddPath(mode). AddPath(ref). AddPaths(path). AddPath(filename). Done() } //line templates/gititemtree.qtpl:29 func (g *GitItemTreePage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { //line templates/gititemtree.qtpl:29 StreamGitItemNav(qw422016, name, ref, Tree) //line templates/gititemtree.qtpl:29 } //line templates/gititemtree.qtpl:29 func (g *GitItemTreePage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { //line templates/gititemtree.qtpl:29 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gititemtree.qtpl:29 g.StreamNav(qw422016, name, ref) //line templates/gititemtree.qtpl:29 qt422016.ReleaseWriter(qw422016) //line templates/gititemtree.qtpl:29 } //line templates/gititemtree.qtpl:29 func (g *GitItemTreePage) Nav(name, ref string) string { //line templates/gititemtree.qtpl:29 qb422016 := qt422016.AcquireByteBuffer() //line templates/gititemtree.qtpl:29 g.WriteNav(qb422016, name, ref) //line templates/gititemtree.qtpl:29 qs422016 := string(qb422016.B) //line templates/gititemtree.qtpl:29 qt422016.ReleaseByteBuffer(qb422016) //line templates/gititemtree.qtpl:29 return qs422016 //line templates/gititemtree.qtpl:29 } //line templates/gititemtree.qtpl:31 func (g *GitItemTreePage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { //line templates/gititemtree.qtpl:31 qw422016.N().S(`