Skip to content

Commit

Permalink
feat(tag): fix key
Browse files Browse the repository at this point in the history
  • Loading branch information
Just-maple committed Oct 25, 2023
1 parent 1d5bce3 commit 5a4fecd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/plugins/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"go/ast"
"path/filepath"
"strconv"
"strings"

zcore "github.com/go-zing/gozz-core"
)
Expand Down Expand Up @@ -123,7 +124,7 @@ func (o Option) run(dir string, entities zcore.DeclEntities) (err error) {
of := optionField{
Doc: doc,
Name: name.Name,
Func: "With" + name.Name,
Func: "With" + strings.Title(name.Name),
Type: typ,
}
named[of.Func] += 1
Expand Down

0 comments on commit 5a4fecd

Please sign in to comment.