Showing 2 of 2 total issues
Function NewServer
has 14 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
httpHost string,
httpPort int,
httpReadTimeout int,
httpWriteTimeout int,
httpIdleTimeout int,
Function main
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func main() {
// declare command line options
var httpHost = flag.String("http-host", defaultHTTPHost, "HTTP Host")
var httpPort = flag.Int("http-port", defaultHTTPPort, "HTTP Port")
var httpReadTimeout = flag.Int("http-timeout-read", defaultHTTPReadTimeout, "The maximum duration in seconds for reading the entire request, including the body")