Documentation
¶
Index ¶
- func NameForDir(dir string) string
- func New(filename, backendModelsPath, frontendModelsPath string) plugin.Plugin
- func PkgAndType(name string) (string, string)
- func SanitizePackageName(pkg string) string
- type ColumnSetting
- type Enum
- type EnumValue
- type Field
- type Interface
- type Model
- type ModelBuild
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NameForDir ¶
NameForDir manually looks for package stanzas in files located in the given directory. This can be much faster than having to consult go list, because we already know exactly where to look.
func PkgAndType ¶
take a string in the form github.com/package/blah.Type and split it into package and type
func SanitizePackageName ¶
Types ¶
type ColumnSetting ¶
type Field ¶
type Field struct {
Description string
Name string
CamelCaseName string
PluralName string
BoilerName string
PluralBoilerName string
BoilerType string
GraphType string
Type types.Type
Tag string
IsCustomFunction bool
CustomFromFunction string
CustomToFunction string
CustomBoilerIDFunction string
CustomGraphIDFunction string
IsId bool
IsNullableID bool
IsRelation bool
IsPlural bool
CustomGraphType string
CustomBoilerType string
}
type ModelBuild ¶
Click to show internal directories.
Click to hide internal directories.