Documentation ¶
Index ¶
- func AddAnotherFxOptionsInModule(path, module, projectModule string) string
- func AddAnotherFxProviderInModule(path, provider string) string
- func AddListOfProvideInFxOptions(path string, providerList []string) string
- func CheckGolangIdentifier(identifier string) bool
- func CheckVersion(goVersion string) string
- func CopyFile(src, dst string, templatesFS embed.FS) error
- func ExecuteCommand(command string, args ...string) error
- func Filter[A any](input []A, f filterFunc[A]) []A
- func FindGitRoot(path string) (string, error)
- func GenerateFiles(templatesFS embed.FS, templatePath string, targetRoot string, ...) error
- func GenerateFromEmbeddedTemplate(templatesFS embed.FS, path, targetFilePath string, data interface{})
- func GenerateFromTemplate(templateFile, outputFile string, data model.ModuleData)
- func GenerateFxModule()
- func GetFunctionDeclarations(path string, templatesFS embed.FS) []string
- func GetModuleDataFromModuleName(moduleName, projectModuleName, goVersion string) model.ModuleData
- func GetModuleNameFromGoModFile() (model.GoMod, error)
- func IgnoreWindowsPath(p string) string
- func ImportPackage(node *ast.File, projectModule, packageName string)
- func ListDirectory(templatesFS embed.FS, dirPath string) []string
- func Map[A, B any](input []A, m mapFunc[A, B]) []B
- func PrintColorizeInfrastructureDetail(data model.ModuleData, infras []string)
- func PrintColorizeModuleDetail(data model.ModuleData)
- func PrintColorizeProjectDetail(data model.ModuleData)
- func PrintColorizeServiceDetail(data model.ModuleData, services []string)
- func PrintFinalStepAfterInfrastructureAddition(data model.ModuleData)
- func PrintFinalStepAfterModuleInitialization(data model.ModuleData)
- func PrintFinalStepAfterProjectInitialization(data model.ModuleData)
- func PrintFinalStepAfterServiceAddition(data model.ModuleData)
- func Reduce[A any](input []A, r reduceFunc[A], initial A) A
- func WriteContentToPath(path, content string)
- type Module
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAnotherFxProviderInModule ¶ added in v0.5.0
func AddListOfProvideInFxOptions ¶ added in v0.5.0
func CheckGolangIdentifier ¶
func CheckVersion ¶
func ExecuteCommand ¶ added in v0.4.0
func FindGitRoot ¶
func GenerateFiles ¶
func GenerateFromEmbeddedTemplate ¶ added in v0.5.0
func GenerateFromTemplate ¶
func GenerateFromTemplate(templateFile, outputFile string, data model.ModuleData)
func GenerateFxModule ¶ added in v0.7.0
func GenerateFxModule()
func GetFunctionDeclarations ¶ added in v0.5.0
func GetModuleDataFromModuleName ¶
func GetModuleDataFromModuleName(moduleName, projectModuleName, goVersion string) model.ModuleData
func IgnoreWindowsPath ¶ added in v0.7.0
func ImportPackage ¶
func ListDirectory ¶ added in v0.5.0
func PrintColorizeInfrastructureDetail ¶ added in v0.5.0
func PrintColorizeInfrastructureDetail(data model.ModuleData, infras []string)
func PrintColorizeModuleDetail ¶
func PrintColorizeModuleDetail(data model.ModuleData)
func PrintColorizeProjectDetail ¶
func PrintColorizeProjectDetail(data model.ModuleData)
func PrintColorizeServiceDetail ¶ added in v0.5.4
func PrintColorizeServiceDetail(data model.ModuleData, services []string)
func PrintFinalStepAfterInfrastructureAddition ¶ added in v0.5.0
func PrintFinalStepAfterInfrastructureAddition(data model.ModuleData)
func PrintFinalStepAfterModuleInitialization ¶
func PrintFinalStepAfterModuleInitialization(data model.ModuleData)
func PrintFinalStepAfterProjectInitialization ¶
func PrintFinalStepAfterProjectInitialization(data model.ModuleData)
func PrintFinalStepAfterServiceAddition ¶ added in v0.5.4
func PrintFinalStepAfterServiceAddition(data model.ModuleData)
func WriteContentToPath ¶
func WriteContentToPath(path, content string)
Types ¶
Click to show internal directories.
Click to hide internal directories.