template

package
v0.0.0-...-1fa5987 Latest Latest
Warning

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

Go to latest
Published: May 14, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTemplateFiles

func GetTemplateFiles(ctx context.Context, templateURL string) (string, error)

GetTemplateFiles returns the path to a new temporary directory that contains the initial project template. It is expected that the caller will move or copy the directory to a more permanent location.

func MakeTemplateFiles

func MakeTemplateFiles(ctx context.Context, inputDir, outputDir string) error

MakeTemplateFiles takes a directory of files to template and outputs the resultant template into the given directory.

Types

type TemplateDescription

type TemplateDescription struct {
	Name        string
	DisplayName string
	IconGlyph   string
	URL         string
}

func GetTemplateDescriptions

func GetTemplateDescriptions() []TemplateDescription

Jump to

Keyboard shortcuts

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