diff options
author | clsr <clsr@clsr.net> | 2017-08-25 17:04:42 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2017-08-25 17:04:44 +0200 |
commit | 9ca364d8753a5f2c7529c5b3dd7178bfd51effc6 (patch) | |
tree | dc5ab072ffbbd37da910d440e05b5bc56dc3f6da /server.go | |
parent | ba217ddeef9c6cd502a6f150bf59cf3ce329cc61 (diff) | |
download | cnp-go-9ca364d8753a5f2c7529c5b3dd7178bfd51effc6.tar.gz cnp-go-9ca364d8753a5f2c7529c5b3dd7178bfd51effc6.zip |
Add support for the draft/cnp-select "select" request/response parameterv0.1.2
Diffstat (limited to 'server.go')
-rw-r--r-- | server.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -35,14 +35,14 @@ type Server struct { Handler Handler // Validate enables request parameter value validation; invalid requests - // are responded with errors. + // are responded to with errors. Validate bool sock net.Conn } -// NewServer creates a new Server with default access and errors logs and sets -// the listen address to "localhost". +// NewServer creates a new Server with default access and errors loggers, +// validation enabled and the listen address set to "localhost". func NewServer() *Server { return &Server{ AccessLogger: log.New(os.Stdout, "", 0), |