Documentation ¶
Index ¶
- Variables
- func DownloadModule(fs afero.Fs, cacheDir, source string) (string, error)
- func Dump(foo interface{})
- func GetFoggCachePath() (string, error)
- func Intptr(i int64) *int64
- func JSONNumberPtr(i int) *json.Number
- func JoinStrPointers(sep string, elems ...*string) *string
- func OpenTemplate(label string, source io.Reader, templates fs.FS, ...) (*template.Template, error)
- func ParseVersion(version string) (semver.Version, string, bool)
- func ProjectRoot() string
- func PwdFs() (afero.Fs, error)
- func SliceContainsString(haystack []string, needle string) bool
- func SortedMapKeys(in interface{}) []string
- func StrPtr(s string) *string
- func TestFile(name string) ([]byte, error)
- func TestFs() (afero.Fs, string, error)
- func VersionCacheKey() string
- func VersionString() (string, error)
- type Downloader
- type ModuleDownloader
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "undefined" GitSha = "undefined" Release = "false" Dirty = "true" )
Functions ¶
func GetFoggCachePath ¶ added in v0.28.0
func JSONNumberPtr ¶ added in v0.56.0
func JoinStrPointers ¶ added in v0.58.5
func OpenTemplate ¶
func OpenTemplate(label string, source io.Reader, templates fs.FS, optionalFuncMaps ...template.FuncMap) (*template.Template, error)
OpenTemplate will read `source` for a template, parse, configure and return a template.Template
func ParseVersion ¶ added in v0.14.0
func ProjectRoot ¶ added in v0.21.0
func ProjectRoot() string
func SliceContainsString ¶ added in v0.50.0
func SortedMapKeys ¶ added in v0.16.5
func SortedMapKeys(in interface{}) []string
func VersionCacheKey ¶
func VersionCacheKey() string
func VersionString ¶
Types ¶
type Downloader ¶ added in v0.63.0
type Downloader struct {
Source string
}
func MakeDownloader ¶ added in v0.63.0
func MakeDownloader(src string) (*Downloader, error)
func (*Downloader) DownloadAndParseModule ¶ added in v0.63.0
Click to show internal directories.
Click to hide internal directories.