Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMissingKeys ¶
IsMissingKeys reports whether an "err" is caused by template missing keys.
Types ¶
type File ¶
type File struct {
// Remote, should be filled if direct.
Repo string `json:"-"`
// Remote, fetched at `ListFiles`.
Name string `json:"name"`
Type string `json:"type"`
DownloadURL string `json:"download_url"`
Version string `json:"-"`
// Local.
Dest string `json:"-"` // The destination path, including the filename (if does not contain a filename the "Name" will be used instead.)
Package string `json:"-"` // The go package declaration.
Data map[string]interface{} `json:"-"` // Any template data.
Replacements map[string]string `json:"-"` // Any replacements.
}
File represents a github file to be locally saved. See `ListFiles` package-level function too.
Click to show internal directories.
Click to hide internal directories.