Skip to content

Commit

Permalink
chore: use ret.String() instead of string(ret.Bytes())
Browse files Browse the repository at this point in the history
  • Loading branch information
testwill committed Jun 29, 2023
1 parent a209843 commit 37cdbe9
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 37cdbe9

Please sign in to comment.