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 8a02a67 commit eedae4cCopy full SHA for eedae4c
templates/go/models/model.go.twig
@@ -26,7 +26,7 @@ func (model {{ definition.name | caseUcfirst }}) New(data []byte) *{{ definition
26
{%~ endif %}
27
func (model *{{ definition.name | caseUcfirst }}) Decode(value interface{}) error {
28
if len(model.data) <= 0 {
29
- return errors.New("method Decode() cannot be used on nested structs.")
+ return errors.New("method Decode() cannot be used on nested struct")
30
}
31
32
err := json.Unmarshal(model.data, value)
0 commit comments