Documentation
¶
Index ¶
- Variables
- func CreateTemplateFuncs(cfg *GeneratorConfig) template.FuncMap
- func Generate(cfg *GeneratorConfig) error
- func LoadDatabaseMigration(db Database, filename string) (string, error)
- func LoadDatabaseQuery(db Database, filename string) (string, error)
- func ProcessFileRenames(project *Project, outputPath string, renames *FileRenames) error
- func RunCommand(workingDir string, command Command) error
- func RunGitCommands(outputPath string) error
- func RunPostCommands(project *Project, outputPath string) error
- func ShouldExcludeFile(path string, project *Project, exclusions *FileExclusions) bool
- type AppType
- type Command
- type Database
- type FileExclusions
- type FileRenames
- type GeneratorConfig
- type Project
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAppTypes = []AppType{ Web, API, }
View Source
var AllDatabases = []Database{ SQLite3, Postgres, MySQL, }
Functions ¶
func CreateTemplateFuncs ¶ added in v0.19.0
func CreateTemplateFuncs(cfg *GeneratorConfig) template.FuncMap
func Generate ¶
func Generate(cfg *GeneratorConfig) error
func LoadDatabaseMigration ¶
func ProcessFileRenames ¶ added in v0.19.0
func ProcessFileRenames(project *Project, outputPath string, renames *FileRenames) error
func RunCommand ¶ added in v0.19.0
func RunGitCommands ¶ added in v0.19.0
func RunPostCommands ¶ added in v0.19.0
func ShouldExcludeFile ¶ added in v0.19.0
func ShouldExcludeFile(path string, project *Project, exclusions *FileExclusions) bool
Types ¶
type FileExclusions ¶ added in v0.19.0
func CreateFileExclusions ¶ added in v0.19.0
func CreateFileExclusions() *FileExclusions
type FileRenames ¶ added in v0.19.0
func CreateFileRenames ¶ added in v0.19.0
func CreateFileRenames() *FileRenames
type GeneratorConfig ¶ added in v0.19.0
Click to show internal directories.
Click to hide internal directories.