Skip to content

Commit

Permalink
doc: tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
Bin-Huang committed Aug 16, 2022
1 parent 64e6182 commit 5aaf262
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ go install github.com/Bin-Huang/newc@latest

Add a `go:generate` command line to the struct which you want to generate a constructor.

```go
//go:generate newc
```

For example:

```go
//go:generate newc
type UserService struct {
Expand Down
6 changes: 0 additions & 6 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ go install github.com/Bin-Huang/newc@latest

在需要生成构造器的结构体上添加一行 `go:generate` 注释。

```go
//go:generate newc
```

比如这样:

```go
//go:generate newc
type UserService struct {
Expand Down

0 comments on commit 5aaf262

Please sign in to comment.