Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderWelcomeHTML ¶
func RenderWelcomeHTML(d WelcomeData) []byte
Types ¶
type StaticHandler ¶
type StaticHandler struct {
// contains filtered or unexported fields
}
func NewStaticHandler ¶
func NewStaticHandler(root string) (*StaticHandler, error)
func (*StaticHandler) ServeHTTP ¶
func (h *StaticHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*StaticHandler) SetWelcome ¶
func (h *StaticHandler) SetWelcome(p WelcomeProvider)
type WelcomeData ¶
type WelcomeProvider ¶
type WelcomeProvider func() WelcomeData
Click to show internal directories.
Click to hide internal directories.