utils

package
v0.0.0-...-261d5d0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T any](arr []T, needle func(T) bool) int

func ErrorPrintln

func ErrorPrintln(a ...any)

func Filter

func Filter[T any](ss []T, callback func(T) bool) (ret []T)

func IsFloat

func IsFloat(s string) bool

func IsInt

func IsInt(s string) bool

func Normalize

func Normalize(name string) (string, string, string, error)

func ParseTemplate

func ParseTemplate(templatePath string, outputFilePath string, data interface{}, args []string) (string, error)

func SuccessPrintln

func SuccessPrintln(a ...any)

func ValidateName

func ValidateName(module string) (string, error)

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

Jump to

Keyboard shortcuts

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