mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-17 14:12:16 +08:00
Remove the optional step for the net/http import
This commit is contained in:
parent
3900df04d2
commit
ca29014183
@ -97,12 +97,6 @@ BenchmarkZeus_GithubAll | 2000 | 944234 | 300688 | 2648
|
|||||||
import "gopkg.in/gin-gonic/gin.v1"
|
import "gopkg.in/gin-gonic/gin.v1"
|
||||||
```
|
```
|
||||||
|
|
||||||
3. (Optional) Import `net/http`. This is required for example if using constants such as `http.StatusOK`.
|
|
||||||
|
|
||||||
```go
|
|
||||||
import "net/http"
|
|
||||||
```
|
|
||||||
|
|
||||||
## API Examples
|
## API Examples
|
||||||
|
|
||||||
#### Using GET, POST, PUT, PATCH, DELETE and OPTIONS
|
#### Using GET, POST, PUT, PATCH, DELETE and OPTIONS
|
||||||
|
Loading…
x
Reference in New Issue
Block a user