util

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version = "undefined"
	GitSha  = "undefined"
	Release = "false"
	Dirty   = "true"
)

Functions

func CheckLatestVersion added in v0.18.0

func CheckLatestVersion(ctx context.Context, owner string, repo string) error

CheckLatestVersion checks to see if we're on the latest version

func DownloadAndParseModule

func DownloadAndParseModule(mod string) (*config.Config, error)

func DownloadModule

func DownloadModule(cacheDir, source string) (string, error)

func Dump

func Dump(foo interface{})

func OpenTemplate

func OpenTemplate(source io.Reader) (*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 ParseVersion(version string) (semver.Version, string, bool)

func SortedMapKeys added in v0.16.5

func SortedMapKeys(in interface{}) []string

func VersionCacheKey

func VersionCacheKey() string

func VersionString

func VersionString() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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