Updated documentation

This commit is contained in:
Eduard Urbach 2023-07-22 11:55:11 +02:00
parent 440e48de4b
commit b2874e175e
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0

View File

@ -20,7 +20,7 @@ s := server.New()
http.ListenAndServe(":8080", s) http.ListenAndServe(":8080", s)
``` ```
Static route: Static:
```go ```go
s.Get("/", func(ctx server.Context) error { s.Get("/", func(ctx server.Context) error {
@ -28,7 +28,7 @@ s.Get("/", func(ctx server.Context) error {
}) })
``` ```
Parameter route: Parameter:
```go ```go
s.Get("/blog/:post", func(ctx server.Context) error { s.Get("/blog/:post", func(ctx server.Context) error {
@ -36,7 +36,7 @@ s.Get("/blog/:post", func(ctx server.Context) error {
}) })
``` ```
Wildcard route: Wildcard:
```go ```go
s.Get("/images/*file", func(ctx server.Context) error { s.Get("/images/*file", func(ctx server.Context) error {