mpresources

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2014 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package mpresources contains the HTML templates and static files used by the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetResourceDir

func GetResourceDir() (dir string)

GetResourceDir returns the resource directory. If it is uninitialised, it looks for the package's source directory in the GOPATH and uses that.

func GetStaticDir

func GetStaticDir() (dir string)

GetStaticDir returns the directory used for storing static files.

func GetTemplates

func GetTemplates() (t *template.Template)

GetTemplates loads the templates from the resource directory if they have not been loaded already, and returns them.

func SetResourceDir

func SetResourceDir(dir string)

SetResourceDir sets the resource directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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