We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding a handler with path "/" will result in a "http: invalid pattern " panic:
"http: invalid pattern "
package main import ( "log" "net" "github.com/dustin/go-coap" ) func main() { mux := coap.NewServeMux() mux.Handle("/", coap.FuncHandler(handler)) log.Fatal(coap.ListenAndServe("udp", ":5683", mux)) } func handler(l *net.UDPConn, a *net.UDPAddr, m *coap.Message) *coap.Message { log.Printf("%s-%d: %b", a.String(), m.MessageID, m.Payload) return nil }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Adding a handler with path "/" will result in a
"http: invalid pattern "
panic:The text was updated successfully, but these errors were encountered: