// Code generated by qtc from "gititemref.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/gititemref.qtpl:1 package templates //line templates/gititemref.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/git" //line templates/gititemref.qtpl:2 import "git.gabrielgio.me/cerrado/pkg/humanize" //line templates/gititemref.qtpl:3 import "github.com/go-git/go-git/v5/plumbing/object" //line templates/gititemref.qtpl:5 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/gititemref.qtpl:5 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/gititemref.qtpl:6 type GitItemRefPage struct { Reference *git.TagReference Commit *object.Commit } //line templates/gititemref.qtpl:12 func (g *GitItemRefPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { //line templates/gititemref.qtpl:12 StreamGitItemNav(qw422016, name, ref, Refs) //line templates/gititemref.qtpl:12 } //line templates/gititemref.qtpl:12 func (g *GitItemRefPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { //line templates/gititemref.qtpl:12 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/gititemref.qtpl:12 g.StreamNav(qw422016, name, ref) //line templates/gititemref.qtpl:12 qt422016.ReleaseWriter(qw422016) //line templates/gititemref.qtpl:12 } //line templates/gititemref.qtpl:12 func (g *GitItemRefPage) Nav(name, ref string) string { //line templates/gititemref.qtpl:12 qb422016 := qt422016.AcquireByteBuffer() //line templates/gititemref.qtpl:12 g.WriteNav(qb422016, name, ref) //line templates/gititemref.qtpl:12 qs422016 := string(qb422016.B) //line templates/gititemref.qtpl:12 qt422016.ReleaseByteBuffer(qb422016) //line templates/gititemref.qtpl:12 return qs422016 //line templates/gititemref.qtpl:12 } //line templates/gititemref.qtpl:14 func (g *GitItemRefPage) StreamGitContent(qw422016 *qt422016.Writer, name, ref string) { //line templates/gititemref.qtpl:14 qw422016.N().S(`
`) //line templates/gititemref.qtpl:30 qw422016.E().S(g.Reference.Message()) //line templates/gititemref.qtpl:30 qw422016.N().S(`