Documentation ¶
Index ¶
- func BenchmarkedHandler(handler func(io.Writer, *http.Request)) func(http.ResponseWriter, *http.Request)
- func HandleFunc(pattern string, handler func(w http.ResponseWriter, req *http.Request))
- func RegisterHtmlWriterForPattern(pattern, title string, htmlWriter HtmlWriter)
- func ServeMuxHandleFunc(serveMux *http.ServeMux, pattern string, ...)
- func SetSecurityHeaders(w http.ResponseWriter)
- func WriteFooter(writer io.Writer)
- func WriteHeader(writer io.Writer)
- func WriteHeaderNoGC(writer io.Writer)
- func WriteHeaderWithRequest(writer io.Writer, req *http.Request)
- func WriteHeaderWithRequestNoGC(writer io.Writer, req *http.Request)
- type HtmlWriter
- type TableWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BenchmarkedHandler ¶
func HandleFunc ¶
func HandleFunc(pattern string, handler func(w http.ResponseWriter, req *http.Request))
func RegisterHtmlWriterForPattern ¶
func RegisterHtmlWriterForPattern(pattern, title string, htmlWriter HtmlWriter)
func ServeMuxHandleFunc ¶
func SetSecurityHeaders ¶
func SetSecurityHeaders(w http.ResponseWriter)
func WriteFooter ¶
func WriteHeader ¶
func WriteHeaderNoGC ¶
Types ¶
type HtmlWriter ¶
type TableWriter ¶
type TableWriter struct {
// contains filtered or unexported fields
}
func NewTableWriter ¶
func (*TableWriter) CloseRow ¶
func (tw *TableWriter) CloseRow() error
func (*TableWriter) OpenRow ¶
func (tw *TableWriter) OpenRow(foreground, background string) error
func (*TableWriter) WriteData ¶
func (tw *TableWriter) WriteData(foreground, data string) error
Click to show internal directories.
Click to hide internal directories.