template

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTemplate

func CreateTemplate(tmpl Template, dir string) error

func FinishTemplate

func FinishTemplate(err error)

func RunTemplate

func RunTemplate(tmplt Template, outputdir string) error

Types

type Archive

type Archive string
const (
	ZipArchive Archive = ".zip"
	PwshScript Archive = ".ps1"
	ShScript   Archive = ".sh"
	Invalid    Archive = ""
)

func GetArchiveType

func GetArchiveType(pathfile string) Archive

type Template

type Template struct {
	Name string
	Type Archive
	Path string
}

func GetTemplate

func GetTemplate(templs []Template, name string) Template

func ListTemplates

func ListTemplates(dir string) []Template

Jump to

Keyboard shortcuts

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