Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SimpleRepositoryTemplate ¶
type SimpleRepositoryTemplate struct {
// contains filtered or unexported fields
}
SimpleRepositoryTemplate stores any templates we use for generating the auto-index page.
Should be instantiated using New.
func NewSimpleRepositoryTemplate ¶
func NewSimpleRepositoryTemplate() *SimpleRepositoryTemplate
NewSimpleRepositoryTemplate is the simplest way to get started with a SimpleRepositoryTemplate.
func (*SimpleRepositoryTemplate) Execute ¶
func (srt *SimpleRepositoryTemplate) Execute(w io.Writer, templateName string, data interface{}) error
Execute writes the output of a template into an io.Writer.
If an error occurs during execution, it will return an error. Otherwise, this function will return nil.
Click to show internal directories.
Click to hide internal directories.