Skip to content

Commit

Permalink
allow overriding "id" acronym (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkxanter authored Jan 27, 2023
1 parent 943a70c commit 8c1a3a3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,9 @@ func Generate(opts GenerateOptions) (mErr error) {
if opts.Acronyms == nil {
opts.Acronyms = make(map[string]string, 1)
}
opts.Acronyms["id"] = "ID"
if _, ok := opts.Acronyms["id"]; !ok {
opts.Acronyms["id"] = "ID"
}
switch opts.Language {
case LangGo:
goOpts := golang.GenerateOptions{
Expand Down

0 comments on commit 8c1a3a3

Please sign in to comment.