Skip to content

Commit

Permalink
doc: v0.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Bin-Huang committed Aug 2, 2022
1 parent bc82b54 commit c2b9e17
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ A command-line tool to generate constructor code for a struct. It don't need man
It don't need a manual installation. Just add this comment line to the struct you want to generate a constructor.

```go
//go:generate go run github.com/Bin-Huang/[email protected].0
//go:generate go run github.com/Bin-Huang/[email protected].1
```

For example:

```go
//go:generate go run github.com/Bin-Huang/[email protected].0
//go:generate go run github.com/Bin-Huang/[email protected].1
type UserService struct {
baseService
userRepository *repositories.UserRepository
Expand Down
4 changes: 2 additions & 2 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Doc: [English](README.md) | **中文**
它的使用方式非常简单,不用专门手动安装,只需要在结构体添加下面这行代码注释就能工作。

```go
//go:generate go run github.com/Bin-Huang/[email protected].0
//go:generate go run github.com/Bin-Huang/[email protected].1
```

举个例子:

```go
//go:generate go run github.com/Bin-Huang/[email protected].0
//go:generate go run github.com/Bin-Huang/[email protected].1
type UserService struct {
baseService
userRepository *repositories.UserRepository
Expand Down
4 changes: 2 additions & 2 deletions test/services/constructor_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c2b9e17

Please sign in to comment.