Skip to content

Commit 7a510ad

Browse files
committed
[update] use export test pkg
1 parent 4c1ce5b commit 7a510ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package main
1+
package goblin_test
22

33
import (
44
"net/http"
55

6-
goblin "github.com/bmf-san/goblin"
6+
"github.com/bmf-san/goblin"
77
)
88

99
func CORS(next http.Handler) http.Handler {
@@ -34,7 +34,7 @@ func BazHandler() http.Handler {
3434
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {})
3535
}
3636

37-
func main() {
37+
func ExampleListenAndServe() {
3838
r := goblin.NewRouter()
3939

4040
r.Methods(http.MethodGet).Handler(`/`, RootHandler())

0 commit comments

Comments
 (0)