template

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const ManifestFilename = "manifest.json"

Variables

This section is empty.

Functions

func Install

func Install(tmpl Template, dir string, options *Options) error

Types

type Manifest

type Manifest struct {
	Files  map[string]bool   `json:"files"`
	Rename map[string]string `json:"rename"`
}

type Options

type Options struct {
	Name string
}

type Template

type Template interface {
	Open(name string) (io.ReadCloser, error)
}

func NewFromFS

func NewFromFS(fileSystem fs.FS) Template

func NewFromFSDir

func NewFromFSDir(fileSystem fs.FS, dir string) Template

func NewFromGitHub

func NewFromGitHub(org, repo, branch string) (Template, error)

Jump to

Keyboard shortcuts

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