Documentation
¶
Index ¶
- func Contains[T any](arr []T, needle func(T) bool) int
- func ErrorPrintln(a ...any)
- func Filter[T any](ss []T, callback func(T) bool) (ret []T)
- func IsFloat(s string) bool
- func IsInt(s string) bool
- func Normalize(name string) (string, string, string, error)
- func ParseTemplate(templatePath string, outputFilePath string, data interface{}, args []string) (string, error)
- func SuccessPrintln(a ...any)
- func ValidateName(module string) (string, error)
- func WarningPrintln(a ...any)
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorPrintln ¶
func ErrorPrintln(a ...any)
func ParseTemplate ¶
func SuccessPrintln ¶
func SuccessPrintln(a ...any)
func ValidateName ¶
func WarningPrintln ¶
func WarningPrintln(a ...any)
Types ¶
type Settings ¶
type Settings struct {
Migrations string `yaml:"migrations"`
TemplateCreate string `yaml:"template-create"`
TemplateAlter string `yaml:"template-alter"`
TemplateGerardMigrationsTable string `yaml:"template-gerard-migrations"`
}
func DefaultSettings ¶
func DefaultSettings() *Settings
func LoadSettings ¶
func LoadSettings() *Settings
Click to show internal directories.
Click to hide internal directories.