Skip to content

Commit

Permalink
doc: tweak spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Bin-Huang authored Aug 5, 2022
1 parent e1e5e07 commit 32c4e4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ type UserService struct {
//go:generate go run github.com/Bin-Huang/[email protected] --init
type Controller struct {
logger *zap.Logger
debug bool
debug bool
}

func (c *Controller) init() {
c.logger = c.logger.With(zap.String("tag", "this-special-controller"))
c.debug = true
c.debug = true
}
```

Expand All @@ -85,8 +85,8 @@ Generated code:
// NewController Create a new Controller
func NewController(logger *zap.Logger, debug bool) *Controller {
s := &Controller{
logger: logger,
debug: debug,
logger: logger,
debug: debug,
}
s.init()
return s
Expand Down

0 comments on commit 32c4e4f

Please sign in to comment.