Sha256: 2a34f38b6303c4f63a59892f40d304bce3d2658ffb2594b1461a7595824516af
Contents?: true
Size: 259 Bytes
Versions: 1
Compression:
Stored size: 259 Bytes
Contents
<%- package "model" -%> <%- source_file.types.select(&:store?).each do |model| -%> <%- import "gopkg.in/go-playground/validator.v9" -%> func (m *<%= model.name %>) Validate() error { validator := validator.New() return validator.Struct(m) } <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
goa_model_gen-0.5.0 | lib/goa_model_gen/templates/model_validation.go.erb |