Skip to content

Commit

Permalink
docs: Block fastglue server in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
joeirimpan committed Jun 24, 2021
1 parent 253822c commit 9276fac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ func main() {
g.GET("/get", csrf.Inject(handlerGetSample))
g.POST("/post", csrf.Protect(handlerPostSample))

go func() {
if err := g.ListenServeAndWaitGracefully(":8888", "", s, shutDownCh); err != nil {
log.Fatalf("error starting server: %v", err)
}
}()
if err := g.ListenServeAndWaitGracefully(":8888", "", s, shutDownCh); err != nil {
log.Fatalf("error starting server: %v", err)
}
}

func handlerGetSample(r *fastglue.Request) error {
Expand Down
9 changes: 4 additions & 5 deletions examples/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ func main() {
testServer.GET("/get", csrf.Inject(handlerGetSample))
testServer.POST("/post", csrf.Protect(handlerPostSample))

go func() {
if err := testServer.ListenServeAndWaitGracefully(":8888", "", s, shutDownCh); err != nil {
log.Fatalf("error starting server: %v", err)
}
}()
if err := testServer.ListenServeAndWaitGracefully(":8888", "", s, shutDownCh); err != nil {
log.Fatalf("error starting server: %v", err)
}

}

func handlerGetSample(r *fastglue.Request) error {
Expand Down

0 comments on commit 9276fac

Please sign in to comment.