Skip to content

Commit

Permalink
chore: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed Jul 7, 2024
1 parent 53e5a49 commit 6136c69
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/reference/goctl-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ goctl api 提供了 plugin 命令来支持对 api 进行功能扩展,当 goctl
通过 api 文件生成 swagger 文档

- [goctl-php](https://github.com/zeromicro/goctl-php)
goctl-php 是一款基于 goctl 的插件,用于生成 php 调用端(服务端) http server 请求代码
goctl-php 是一款基于 goctl 的插件,用于生成 php 调用端(服务端) http server 请求代码
2 changes: 1 addition & 1 deletion docs/tutorials/cli/env.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ PROTO_GEN_GO_GRPC_VERSION=1.2.0
```

| <img width={100}/> 字段 | <img width={200}/> 默认值 | <img width={800}/> 参数说明 |
| -- | --- | --- |
| -- | --- | --- |
| GOCTL_OS | 空字符串 | 操作系统 |
| GOCTL_ARCH | 空字符串 | 系统架构 |
| GOCTL_HOME | 空字符串 | goctl 配置目录 |
Expand Down
3 changes: 2 additions & 1 deletion docs/tutorials/cli/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -924,18 +924,19 @@ Flags:
|tinyblob |string|
|ltree |[]byte|
### 类型映射自定义
类型映射自定义只有试验版本才能使用,关于如何开启试验版本,请参考 <a href="docs/tutorials/cli/env" target="_blank">goctl env</a>,关于配置使用请参考 <a href="docs/tutorials/cli/config" target="_blank">goctl config</a>
示例 1. 修改 decimal 为 decimal.Decimal 类型
1. 在需要生成 model 的工程中初始化配置

Check failure on line 934 in docs/tutorials/cli/model.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Trailing spaces

docs/tutorials/cli/model.md:934:1 MD009/no-trailing-spaces Trailing spaces [Expected: 0; Actual: 1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md009.md
```bash
$ goctl config init
goctl.yaml generated in ~/workspace/go-zero/tools/goctl/goctl.yaml
```
2. 修改类型映射关系

Check failure on line 940 in docs/tutorials/cli/model.md

View workflow job for this annotation

GitHub Actions / lint-markdown

Ordered list item prefix

docs/tutorials/cli/model.md:940:1 MD029/ol-prefix Ordered list item prefix [Expected: 1; Actual: 2; Style: 1/1/1] https://github.com/DavidAnson/markdownlint/blob/v0.31.1/doc/md029.md
灰色底纹部分为自定义映射类型。
Expand Down

0 comments on commit 6136c69

Please sign in to comment.