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 ¶
GetTemplates loads the templates from the resource directory if they have not been loaded already, and returns them.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.