template

package
v0.4.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	OpenPattern  = "<md"
	ClosePattern = "md>"
)

Variables

This section is empty.

Functions

func RenderDirectory

func RenderDirectory(templateDir string, data *Data) error

func RenderEmbededDirectory

func RenderEmbededDirectory(templateFS fs.FS, data *Data) error

func WriteToFile

func WriteToFile(filePath string, tmpl *template.Template, data *Data) error

Types

type Data

type Data struct {
	Name           string
	Description    string
	Access         string
	Location       string
	TemplateName   string
	TemplateSource string
	OutputDir      string
	Type           string
	Connections    map[string]interface{}
	// Specificaly for the README
	CloudPrefix     string
	RepoName        string
	RepoNameEncoded string
}

Jump to

Keyboard shortcuts

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