Skip to content

Commit

Permalink
gg支持泛型
Browse files Browse the repository at this point in the history
  • Loading branch information
shenghui0779 committed Jan 16, 2025
1 parent a70a005 commit 1190aaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ go install github.com/shenghui0779/yiigo/cmd/yiigo@latest

#### gg

`protoc-gen-go` 启发,为结构体生成 `Get` 方法(支持泛型!!!),以避免空指针引起的Panic
`protoc-gen-go` 启发,为结构体生成 `Get` 方法支持泛型!!!】,以避免空指针引起的Panic

```shell
go install github.com/shenghui0779/yiigo/cmd/gg@latest
Expand Down
2 changes: 1 addition & 1 deletion cmd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ yiigo ent hello # 创建Ent实例

## gg

`protoc-gen-go` 启发,为结构体生成 `Get` 方法(支持泛型!!!),以避免空指针引起的Panic
`protoc-gen-go` 启发,为结构体生成 `Get` 方法支持泛型!!!】,以避免空指针引起的Panic

Generate `Get` method for structure, inspired by `protoc-gen-go`, to avoid Panic caused by null pointer

Expand Down

0 comments on commit 1190aaf

Please sign in to comment.