Documentation ¶
Index ¶
- func Dir(useLocal bool, name string) http.FileSystem
- func FS(useLocal bool) http.FileSystem
- func FSByte(useLocal bool, name string) ([]byte, error)
- func FSMustByte(useLocal bool, name string) []byte
- func FSMustString(useLocal bool, name string) string
- func FSString(useLocal bool, name string) (string, error)
- type CommitBundle
- type TagBundle
- type TemplateData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dir ¶
func Dir(useLocal bool, name string) http.FileSystem
Dir returns a http.Filesystem for the embedded assets on a given prefix dir. If useLocal is true, the filesystem's contents are instead used.
func FS ¶
func FS(useLocal bool) http.FileSystem
FS returns a http.Filesystem for the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSByte ¶
FSByte returns the named file from the embedded assets. If useLocal is true, the filesystem's contents are instead used.
func FSMustByte ¶
FSMustByte is the same as FSByte, but panics if name is not present.
func FSMustString ¶
FSMustString is the string version of FSMustByte.
Types ¶
type CommitBundle ¶
type CommitBundle struct { Commit *github.RepositoryCommit Pull *github.PullRequest Tag *github.RepositoryTag Labels map[string]bool }
CommitBundle holds data associated with a commit.
type TagBundle ¶
type TagBundle struct { Labeled map[string][]CommitBundle NoLabeled []CommitBundle Tag *github.RepositoryTag }
TagBundle holds a tag and commits associated with the tag. The commits are split per label(of associated PR). No labeled commits are added to a separate list.
type TemplateData ¶
type TemplateData struct { Commits []CommitBundle Tags []TagBundle }
TemplateData holds data passed to golang template.