Skip to content

Commit

Permalink
directive.go: rename new -> runNew
Browse files Browse the repository at this point in the history
  • Loading branch information
phelmkamp committed Dec 22, 2019
1 parent ccee375 commit 563c362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions directive/directive.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var (
"mapper": mapper,
"sort": sort,
"stringer": stringer,
"new": new,
"new": runNew,
"equal": equal,
}
)
Expand Down Expand Up @@ -268,8 +268,8 @@ func stringer(tgt *Target, opts []string) {
}
}

// new adds each name of the given field to the New() implementation.
func new(tgt *Target, opts []string) {
// runNew adds each name of the given field to the New() implementation.
func runNew(tgt *Target, opts []string) {
method := "New" + upperFirst(tgt.RcvType)
for _, fldNm := range tgt.FldNames {
log.Printf("Adding to method: %s\n", method)
Expand Down

0 comments on commit 563c362

Please sign in to comment.