Skip to content

Commit

Permalink
[update] use export test pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
bmf-san committed Oct 1, 2023
1 parent 4c1ce5b commit 7a510ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _examples/main.go → example_goblin_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package main
package goblin_test

import (
"net/http"

goblin "github.com/bmf-san/goblin"
"github.com/bmf-san/goblin"
)

func CORS(next http.Handler) http.Handler {
Expand Down Expand Up @@ -34,7 +34,7 @@ func BazHandler() http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {})
}

func main() {
func ExampleListenAndServe() {
r := goblin.NewRouter()

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

0 comments on commit 7a510ad

Please sign in to comment.