mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-02-03 00:38:40 +08:00
update keywords.md
This commit is contained in:
parent
db83843558
commit
2d8366b30e
16
readme.md
16
readme.md
@ -71,17 +71,11 @@ go-zero是一个集成了各种工程实践的包含web和rpc框架,有如下
|
|||||||
|
|
||||||
## 6. Installation
|
## 6. Installation
|
||||||
|
|
||||||
1. 在项目目录下通过如下命令安装:
|
在项目目录下通过如下命令安装:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
go get -u github.com/tal-tech/go-zero
|
go get -u github.com/tal-tech/go-zero
|
||||||
```
|
```
|
||||||
|
|
||||||
2. 代码里导入go-zero
|
|
||||||
|
|
||||||
```go
|
|
||||||
import "github.com/tal-tech/go-zero"
|
|
||||||
```
|
|
||||||
|
|
||||||
## 7. Quick Start
|
## 7. Quick Start
|
||||||
|
|
||||||
@ -97,7 +91,7 @@ go-zero是一个集成了各种工程实践的包含web和rpc框架,有如下
|
|||||||
|
|
||||||
```go
|
```go
|
||||||
type Request struct {
|
type Request struct {
|
||||||
Name string `path:"name"`
|
Name string `path:"name,options=you|me"` // 框架自动验证请求参数是否合法
|
||||||
}
|
}
|
||||||
|
|
||||||
type Response struct {
|
type Response struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user