view

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 4, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL