generator

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CliTemplateBase64 = `` /* 3512-byte string literal not displayed */
View Source
var MigrationScriptTemplateBase64 = `` /* 356-byte string literal not displayed */
View Source
var MigratorTemplateBase64 = `` /* 940-byte string literal not displayed */

Functions

func GenMigrationFile

func GenMigrationFile(rc *gomiger.GomigerConfig, name string) error

GenMigrationFile generates a migration file

func InitSrcCode

func InitSrcCode(rc *gomiger.GomigerConfig) error

InitSrcCode initializes the source code

func IsSrcCodeInitialized

func IsSrcCodeInitialized(rc *gomiger.GomigerConfig) bool

IsSrcCodeInitialized checks if the source code is initialized.

Types

type Template

type Template struct {
	// contains filtered or unexported fields
}

func LoadTemplates

func LoadTemplates() ([]Template, error)

LoadTemplates load the preset template strings to ast.Node

Directories

Path Synopsis
scripts
gen_contents command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL