scaffold

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package scaffold creates standalone Go projects from bundled templates.

Index

Constants

View Source
const FrameworkModule = "github.com/palma99/palma-framework"

Variables

This section is empty.

Functions

func Create

func Create(options Options) (string, error)

Create renders everything before writing. The destination must not exist. Dependencies and generated DI code are prepared by the user's next Go commands.

Types

type Dependency

type Dependency struct{ Module, Version string }

type Options

type Options struct {
	Template, Directory, Module, Environment string
	FrameworkVersion, FrameworkDir           string
	Router                                   string
}

type Router

type Router struct {
	Name         string
	Dependencies []Dependency
}

Router describes an HTTP template overlay and its direct dependencies. Add a registry entry and routers/<name> files to support another transport.

func Routers

func Routers() []Router

type Template

type Template struct{ Name, Description, Entry string }

func Templates

func Templates() []Template

Jump to

Keyboard shortcuts

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