Updated documentation
This commit is contained in:
parent
7c7603200e
commit
2eff3f64c5
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@ s := server.New()
|
|||
http.ListenAndServe(":8080", s)
|
||||
```
|
||||
|
||||
Static route:
|
||||
Static:
|
||||
|
||||
```go
|
||||
s.Get("/", func(ctx server.Context) error {
|
||||
|
@ -28,7 +28,7 @@ s.Get("/", func(ctx server.Context) error {
|
|||
})
|
||||
```
|
||||
|
||||
Parameter route:
|
||||
Parameter:
|
||||
|
||||
```go
|
||||
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
|
||||
s.Get("/images/*file", func(ctx server.Context) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue