We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69e53e0 commit ea247a6Copy full SHA for ea247a6
types/json_size.go
@@ -16,7 +16,7 @@ type ExpectedJSONSize interface {
16
// Do not use it when a precise value is required.
17
func ExpectedJSONSizeString(s string) int {
18
// 2x quote + length of string + escaping overhead
19
- var out int = quotes + len(s)
+ out := quotes + len(s)
20
for _, r := range s {
21
if r == '"' || r == '\\' {
22
out += 1
0 commit comments