mirror of
https://github.com/netbirdio/easyjson.git
synced 2026-05-22 18:44:42 -07:00
Merge pull request #388 from testwill/string
chore: use ret.String() instead of string(ret.Bytes())
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user