Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Viewer ¶
func Viewer(templateFile string) func(http.ResponseWriter, interface{})
Types ¶
type TemplateCache ¶
type TemplateCache struct {
// contains filtered or unexported fields
}
func NewTemplateCache ¶
func NewTemplateCache() *TemplateCache
func (*TemplateCache) Get ¶
func (t *TemplateCache) Get(templateFile string) (*template.Template, error)
func (*TemplateCache) HasCache ¶
func (t *TemplateCache) HasCache(templateFile string) bool
func (*TemplateCache) ParseFiles ¶
func (t *TemplateCache) ParseFiles(templateFile string) (*template.Template, error)
Click to show internal directories.
Click to hide internal directories.