Documentation
¶
Index ¶
- Variables
- func CreateDirStructure(basePath string, dirs []string) error
- func FileExists(path string) bool
- func RenderTemplate(fs embed.FS, templateName string, data interface{}) ([]byte, error)
- func ToCamelCase(s string) string
- func ToKebabCase(s string) string
- func WriteFile(path string, content []byte, force bool) error
- type ProjectConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var GitHubActionsTemplates embed.FS
Functions ¶
func CreateDirStructure ¶
CreateDirStructure creates a list of directories
func RenderTemplate ¶
RenderTemplate renders a template from an embed.FS and returns the result as bytes
func ToKebabCase ¶
ToKebabCase converts snake_case or CamelCase to kebab-case
Types ¶
type ProjectConfig ¶
type ProjectConfig struct {
// Project identification
Name string // Project name (e.g., "my-backend")
Output string // Output directory
// Go-specific (optional for other stacks)
Module string // Go module path (e.g., "github.com/company/my-backend")
// Generation options
Force bool // Overwrite existing files
// Metadata
Timestamp string // Generation timestamp
}
ProjectConfig holds common configuration for all project types
Click to show internal directories.
Click to hide internal directories.