Avoid capitalized error strings in generated code (#162)

Error strings should follow established guidelines
to ensure good composability and uniformity.
A mention of this particular guideline can be found
in Go Code Review Comments:
https://github.com/golang/go/wiki/CodeReviewComments#error-strings
This commit is contained in:
Adam Babik
2022-01-13 11:01:33 -08:00
committed by GitHub
parent f0c2ac17a9
commit 9fbb6b87aa
15 changed files with 117 additions and 117 deletions
+1 -1
View File
@@ -39,6 +39,6 @@ func __marshal{{.GoName}}(v *{{.GoName}}) ([]byte, error) {
return []byte("null"), nil
default:
return nil, {{ref "fmt.Errorf"}}(
`Unexpected concrete type for {{.GoName}}: "%T"`, v)
`unexpected concrete type for {{.GoName}}: "%T"`, v)
}
}