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

console

package
v1.20.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfirmToProceed

func ConfirmToProceed(ctx console.Context, env string) bool

func MakeNames

func MakeNames(ctx console.Context) []string

MakeNames returns every name passed to a make:* command. When no positional argument is provided it returns a single empty name so that NewMake falls back to its interactive prompt, preserving the original single-name behavior.

func TwoColumnDetail

func TwoColumnDetail(first, second string, filler ...rune) string

Types

type Make

type Make struct {
	// contains filtered or unexported fields
}

func NewMake

func NewMake(ctx console.Context, ttype, name, root string) (*Make, error)

func (*Make) GetFilePath

func (m *Make) GetFilePath() string

func (*Make) GetFolderPath

func (m *Make) GetFolderPath() string

func (*Make) GetModuleName

func (m *Make) GetModuleName() string

func (*Make) GetName

func (m *Make) GetName() string

func (*Make) GetPackageImportPath

func (m *Make) GetPackageImportPath() string

func (*Make) GetPackageName

func (m *Make) GetPackageName() string

func (*Make) GetSignature

func (m *Make) GetSignature() string

func (*Make) GetStructName

func (m *Make) GetStructName() string

Jump to

Keyboard shortcuts

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