Help us shape the future of Go! Take the 2026 Go Developer Survey

scaffold

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package scaffold renders versioned project templates from core resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddExtras added in v0.0.2

func AddExtras(ctx context.Context, destination string, manifest sdk.Manifest, options Extras) error

AddExtras modifies only a newly created project; it never commits or publishes.

func CreateGame

func CreateGame(destination, name string, manifest sdk.Manifest) error

CreateGame renders a new game project at destination.

func CreateTemplate

func CreateTemplate(destination, name string, manifest sdk.Manifest, selection string) error

CreateTemplate selects user-owned game or UI source while sharing SDK setup.

func CreateTemplateContext added in v0.0.2

func CreateTemplateContext(ctx context.Context, destination, name string, manifest sdk.Manifest, selection string) error

CreateTemplateContext renders a starter from the selected SDK with cancellation.

func NormalizeTemplate added in v0.0.2

func NormalizeTemplate(selection string) (string, error)

NormalizeTemplate accepts guide names and preserves the historical game alias.

func ValidateDestination added in v0.0.2

func ValidateDestination(destination, name string) error

ValidateDestination checks user input before SDK downloads or project writes.

func ValidateTemplate added in v0.0.2

func ValidateTemplate(ctx context.Context, manifest sdk.Manifest, selection string) error

ValidateTemplate checks the selected bundle rather than guessing from its version.

Types

type Extras added in v0.0.2

type Extras struct {
	Git           bool
	Gitignore     bool
	GitHubActions bool
}

Extras controls optional, user-owned project setup.

Jump to

Keyboard shortcuts

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