Documentation
¶
Index ¶
- func Arg(t Tool, argname string) string
- func LogWhine(t Tool, err error)
- func LogWhineString(t Tool, msg string)
- func PrependToolName(t Tool, err error) error
- func Whine(t Tool, w http.ResponseWriter, err error)
- func WhineString(t Tool, w http.ResponseWriter, msg string)
- type Tool
- type ToolBag
- type ToolFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogWhineString ¶
for when WriteHeader() has already been called (e.g., template errors)
func PrependToolName ¶
stick the name of a tool before an error message
func Whine ¶
func Whine(t Tool, w http.ResponseWriter, err error)
func WhineString ¶
func WhineString(t Tool, w http.ResponseWriter, msg string)
Types ¶
type Tool ¶
type ToolBag ¶
type ToolFunc ¶
type ToolFunc struct { http.HandlerFunc // contains filtered or unexported fields }
func NewToolFunc ¶
func NewToolFunc(name, desc string, f http.HandlerFunc) *ToolFunc
func NewToolFuncAt ¶
func NewToolFuncAt(name, desc, path string, f http.HandlerFunc) *ToolFunc
Click to show internal directories.
Click to hide internal directories.