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

setup

package
v1.233.1 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneratorContext

type GeneratorContext struct {
	IOContext iolib.Context
	Terminal  terminal.Terminal
	UI        *generatorUI.InitUI
}

GeneratorContext holds the I/O and UI components needed for generator commands.

func NewGeneratorContext

func NewGeneratorContext() (*GeneratorContext, error)

NewGeneratorContext creates a new generator context with I/O and terminal setup. This helper reduces boilerplate in init and scaffold commands.

Jump to

Keyboard shortcuts

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