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