chore: use ret.String() instead of string(ret.Bytes())

This commit is contained in:
guoguangwu
2023-06-29 15:18:48 +08:00
parent a209843d8e
commit 37cdbe9d67
+1 -1
View File
@@ -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 {