Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsDev = isDev
IsDev whether the application is running in the development mode.
Functions ¶
func GetTemplate ¶
GetTemplate loads the template from the given path. The funtion caches the loaded template so that the same template would not be parsed over and over again unless skipCache is set to true.
Please note this method panics if template.ParseFiles failes in any way.
func HSTSHandler ¶
func HSTSHandler(f http.HandlerFunc) http.HandlerFunc
HSTSHandler takes a normal HTTP handler and adds the capability of sending HSTS headers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.