Documentation ¶ Index ¶ Constants func Install(tmpl Template, dir string, options *Options) error type Manifest type Options type Template func NewFromFS(fileSystem fs.FS) Template func NewFromFSDir(fileSystem fs.FS, dir string) Template func NewFromGitHub(org, repo, branch string) (Template, error) 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) Source Files ¶ View all Source files installer.go template.go template_github.go Click to show internal directories. Click to hide internal directories.