Sha256: e8d9b28255fac746c539b66b9e12b6a0a25cfaae4ba47e140d6534e8dbf9319a

Contents?: true

Size: 131 Bytes

Versions: 14

Compression:

Stored size: 131 Bytes

Contents

<%- import 'fmt' -%>
func (err *<%= type.name %>) Error() string {
	return fmt.Sprintf("Invalid %s: %s", err.Field, err.Message)
}

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
goon_model_gen-0.4.3 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.4.2 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.4.1 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.4.0 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.3.1 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.3.0 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.2.5 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.2.4 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.2.3 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.2.2 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.2.1 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.2.0 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.1.3 lib/goon_model_gen/templates/validation/error/02_Error.go.erb
goon_model_gen-0.1.2 lib/goon_model_gen/templates/validation/error/02_Error.go.erb