Documentation ¶
Overview ¶
Package models creates the models for the modules
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PackageTemplate = `// Package models holds generated struct for {{.Schema.Title}}.
package models
`
PackageTemplate holds the template for the packages of the models
View Source
var StructTemplate = `
{{AsComment .Schema.Description}}
type {{ToUpperFirst .Schema.Title}} {{goType .Schema}}
`
StructTemplate holds the template for the structs of the models
Functions ¶
func GenerateModel ¶
GenerateModel generates the model itself
func GeneratePackage ¶
GeneratePackage generates the imports according to the schema. TODO remove this function
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package constants generates the constant variables for a model/schema
|
Package constants generates the constant variables for a model/schema |
Package constructors generates the constructors for given schema/model
|
Package constructors generates the constructors for given schema/model |
Click to show internal directories.
Click to hide internal directories.