Versions in this module Expand all Collapse all v0 v0.0.2 Jun 5, 2022 Changes in this version + var LogContext = contextKey("request_logs") + func Error(r *http.Request, v ...interface{}) + func Errorf(r *http.Request, format string, v ...interface{}) + func Info(r *http.Request, v ...interface{}) + func Infof(r *http.Request, format string, v ...interface{}) + func StartHttp(host string, port int, handler http.Handler, opts ...StartOption) error + func StartHttps(host string, port int, certFile, keyFile string, handler http.Handler, ...) error + type LogCollector struct + Messages []string + func (lc *LogCollector) Append(msg string) + func (lc *LogCollector) Flush() string + type StartOption func(svr *http.Server)