You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Func NewServer is defined as: func NewServer(addr string, config Config) (*http.Server, error)
... you can't pass nil as a config param right?
You said this:
However, we still need to pass a
config struct that can be empty if a client wants to use the default configuration:
server, err := httplib.NewServer("localhost", nil)
The text was updated successfully, but these errors were encountered:
Func
NewServer
is defined as:func NewServer(addr string, config Config) (*http.Server, error)
... you can't pass nil as a
config
param right?You said this:
The text was updated successfully, but these errors were encountered: