Skip to content

Commit

Permalink
更新
Browse files Browse the repository at this point in the history
  • Loading branch information
guonaihong committed Dec 20, 2023
1 parent 10a9e63 commit 1d4e7b5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions codemsg.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ var (

### 二、提取某些code到指定的map里面
主要是过滤一些code,比如对错误进行分级的使用场景, 有些错误非服务端引起。需要忽略这些错误

用法是` @TakeCodeToMap(InfoMap)`, 圆括号里面是你给map的命名

2.1 命令
```go
h2o codemsg --code-msg --linecomment --type ErrNo --take-code-to-map ./testdata/err.go
Expand Down

0 comments on commit 1d4e7b5

Please sign in to comment.