utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	NoopCommand string = "NOOP_COMMAND_DO_NOT_RUN"
	DebianRoot  string = "/usr/share/doc"
	LicenseFile string = "copyright"
)

Variables

This section is empty.

Functions

func CompileAndRunRegex

func CompileAndRunRegex(regex string, base string, shouldMatch bool) bool

func SubstituteEnvVar added in v1.2.0

func SubstituteEnvVar(arg string, env map[string]string) string

func SubstituteEnvVars added in v1.2.0

func SubstituteEnvVars(args []string, env map[string]string) []string

func UserConfirmation

func UserConfirmation(message string, force bool) bool

adapted from https://gist.github.com/albrow/5882501

func ValueInList

func ValueInList(target string, list []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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