utl

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv added in v1.3.0

func GetEnv(key, fallback string) string

GetEnv retrieves the value of the environment variable named by the key or fallback if not found

func IsExcluded added in v0.4.1

func IsExcluded(s string, excludes []string) bool

IsExcluded checks if s string is excluded in excludes If excludes is empty, assume false

func IsIncluded added in v0.4.1

func IsIncluded(s string, includes []string) bool

IsIncluded checks if s string is included in includes If includes is empty, assume true

func MatchString

func MatchString(exp string, s string) bool

MatchString reports whether a string s contains any match of a regular expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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