mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-16 21:32:11 +08:00
update readme
This commit is contained in:
parent
77891feabd
commit
f1cae15bc0
@ -80,9 +80,13 @@ And use the Go command to run the demo:
|
||||
$ go run example.go
|
||||
```
|
||||
|
||||
For more examples, please read the [Gin Quick Start](docs/doc.md).
|
||||
### Learn more examples
|
||||
|
||||
## Examples
|
||||
#### Quick Start
|
||||
|
||||
Learn and practice more examples, please read the [Gin Quick Start](docs/doc.md) which includes API examples and builds tag.
|
||||
|
||||
#### Examples
|
||||
|
||||
A number of ready-to-run examples demonstrating various use cases of Gin on the [Gin examples](https://github.com/gin-gonic/examples) repository.
|
||||
|
||||
|
11
docs/doc.md
11
docs/doc.md
@ -2,8 +2,9 @@
|
||||
|
||||
## Contents
|
||||
|
||||
- [Build with json replacement](#build-with-json-replacement)
|
||||
- [Build without `MsgPack` rendering feature](#build-without-msgpack-rendering-feature)
|
||||
- [Build Tags](#build-tags)
|
||||
- [Build with json replacement](#build-with-json-replacement)
|
||||
- [Build without `MsgPack` rendering feature](#build-without-msgpack-rendering-feature)
|
||||
- [API Examples](#api-examples)
|
||||
- [Using GET, POST, PUT, PATCH, DELETE and OPTIONS](#using-get-post-put-patch-delete-and-options)
|
||||
- [Parameters in path](#parameters-in-path)
|
||||
@ -62,7 +63,9 @@
|
||||
- [Don't trust all proxies](#dont-trust-all-proxies)
|
||||
- [Testing](#testing)
|
||||
|
||||
## Build with json replacement
|
||||
## Build tags
|
||||
|
||||
### Build with json replacement
|
||||
|
||||
Gin uses `encoding/json` as default json package but you can change it by build from other tags.
|
||||
|
||||
@ -84,7 +87,7 @@ go build -tags=go_json .
|
||||
$ go build -tags="sonic avx" .
|
||||
```
|
||||
|
||||
## Build without `MsgPack` rendering feature
|
||||
### Build without `MsgPack` rendering feature
|
||||
|
||||
Gin enables `MsgPack` rendering feature by default. But you can disable this feature by specifying `nomsgpack` build tag.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user