Skip to content

Commit 5e854fb

Browse files
authored
Merge pull request #388 from testwill/string
chore: use ret.String() instead of string(ret.Bytes())
2 parents 78171e8 + 37cdbe9 commit 5e854fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen/generator.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ func camelToSnake(name string) string {
517517
if lastUpper != 0 {
518518
ret.WriteRune(unicode.ToLower(lastUpper))
519519
}
520-
return string(ret.Bytes())
520+
return ret.String()
521521
}
522522

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

0 commit comments

Comments
 (0)