Help us shape the future of Go! Take the 2026 Go Developer Survey

pages

package module
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pages

type Pages struct {
	Log *log.Log
	// contains filtered or unexported fields
}

Pages holds dynamic templates

func New

func New(pageDir string, _log *log.Log) (pages *Pages, err error)

New ... creates a new set of views

func (*Pages) Count

func (pages *Pages) Count() (count int, err error)

Count .. .counts the number of defined Pa

func (*Pages) List

func (pages *Pages) List() (list string, err error)

List ... lists all known templates, good for debugging

func (*Pages) Load

func (pages *Pages) Load(file string, w http.ResponseWriter, data interface{})

Load ...

Jump to

Keyboard shortcuts

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