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

aigeneration

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package aigeneration asks, during gtb init, whether gtb may call a model while generating projects whose manifest does not say (spec 0211 D5). The question is gtb's own, so it lives here rather than in pkg/setup/ai, which every tool built on GTB inherits.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Initialiser

type Initialiser struct{}

Initialiser records the person's default for AI generation as generator.ai.

func (Initialiser) Configure

func (Initialiser) Configure(ctx context.Context, p *props.Props, cfg setup.Editor) error

Configure asks the question and writes the answer, No included, so the person can see the setting in their config.

func (Initialiser) IsConfigured

func (Initialiser) IsConfigured(cfg config.Reader) bool

IsConfigured reports whether generator.ai has been answered already.

func (Initialiser) Name

func (Initialiser) Name() string

Name returns the human-readable name for this initialiser.

Jump to

Keyboard shortcuts

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