template

package
v0.0.0-...-a95aca3 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute(config *Config, src string, dst string) error

Types

type Config

type Config struct {
	Vars []Var `toml:"vars"`
}

type Template

type Template struct {
	Name   string
	Base   string
	Config Config
}

func GetAvailable

func GetAvailable(config *app.Config) ([]Template, error)

func (*Template) Execute

func (t *Template) Execute(dst string) error

type Var

type Var struct {
	Name    string `toml:"name"`
	Prompt  string `toml:"prompt"`
	Default string `toml:"default"`
}

Jump to

Keyboard shortcuts

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