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

template

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: MPL-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplyCmd

func NewApplyCmd(globalFlags *flags.GlobalFlags) *cobra.Command

func NewGenerateDocsCmd

func NewGenerateDocsCmd(globalFlags *flags.GlobalFlags) *cobra.Command

func NewMetadataCmd

func NewMetadataCmd(globalFlags *flags.GlobalFlags) *cobra.Command

func NewPublishCmd

func NewPublishCmd(globalFlags *flags.GlobalFlags) *cobra.Command

func NewTemplateCmd

func NewTemplateCmd(globalFlags *flags.GlobalFlags) *cobra.Command

Types

type ApplyFlags

type ApplyFlags struct {
	WorkspaceFolder string
	TemplateID      string
	TemplateArgs    []string
	Features        []string
	OmitPaths       []string
}

type GenerateDocsFlags

type GenerateDocsFlags struct {
	ProjectFolder string
	GithubOwner   string
	GithubRepo    string
}

type MetadataFlags

type MetadataFlags struct {
	TemplateID string
}

type PublishFlags

type PublishFlags struct {
	Target    string
	Registry  string
	Namespace string
}

type TemplateMetadata

type TemplateMetadata struct {
	ID          string                    `json:"id"`
	Version     string                    `json:"version"`
	Name        string                    `json:"name"`
	Description string                    `json:"description"`
	Options     map[string]TemplateOption `json:"options,omitempty"`
}

type TemplateOption

type TemplateOption struct {
	Type        string `json:"type"`
	Description string `json:"description"`
	Default     any    `json:"default,omitempty"`
	Enum        []any  `json:"enum,omitempty"`
}

Jump to

Keyboard shortcuts

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