Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FieldsProvider ¶
type Model ¶
type Model struct {
PackageName string
SchemaImport string
SchemaPackage string
SchemaFile string
Name string
Fields []*field.Descriptor
SchemaConfig *schemagen.SchemaConfig
WriteModelToDir string
}
func (*Model) GenerateModel ¶
func (m *Model) GenerateModel(fp FieldsProvider) (string, error)
GenerateModel generates golang file with model.
Returns output filepath and error.
func (*Model) GenerateValidators ¶
func (m *Model) GenerateValidators(fp FieldsProvider) (string, error)
GenerateValidators generates golang file with model.
Returns output filepath and error.
Click to show internal directories.
Click to hide internal directories.