We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 67fcf4d commit 0ee8fb4Copy full SHA for 0ee8fb4
example_goblin_test.go
@@ -1,6 +1,7 @@
1
package goblin_test
2
3
import (
4
+ "log"
5
"net/http"
6
7
"github.com/bmf-san/goblin"
@@ -44,5 +45,7 @@ func ExampleListenAndServe() {
44
45
r.Methods(http.MethodPost).Use(CORS).Handler(`/foo/:name`, FooNameHandler())
46
r.Methods(http.MethodGet).Handler(`/baz`, BazHandler())
47
- http.ListenAndServe(":9999", r)
48
+ if err := http.ListenAndServe(":9999", r); err != nil {
49
+ log.Fatal(err)
50
+ }
51
}
0 commit comments