Skip to content

Commit

Permalink
Merge pull request #388 from testwill/string
Browse files Browse the repository at this point in the history
chore: use ret.String() instead of string(ret.Bytes())
  • Loading branch information
rvasily authored Dec 14, 2024
2 parents 78171e8 + 37cdbe9 commit 5e854fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ func camelToSnake(name string) string {
if lastUpper != 0 {
ret.WriteRune(unicode.ToLower(lastUpper))
}
return string(ret.Bytes())
return ret.String()
}

func (SnakeCaseFieldNamer) GetJSONFieldName(t reflect.Type, f reflect.StructField) string {
Expand Down

0 comments on commit 5e854fb

Please sign in to comment.