Documentation ¶
Index ¶
- Constants
- func Basename(path string) string
- func Exists(name string) bool
- func GetEnv(key, fallback string) string
- func GetSecret(plaintext, filename string) (string, error)
- func Hash(text string) string
- func MatchString(exp string, s string) bool
- func NewDuration(duration time.Duration) *time.Duration
- func NewFalse() *bool
- func NewTrue() *bool
Constants ¶
View Source
const ( SIGTERM = unix.SIGTERM SIGHUP = unix.SIGHUP )
Variables ¶
This section is empty.
Functions ¶
func GetEnv ¶
GetEnv retrieves the value of the environment variable named by the key or fallback if not found
func MatchString ¶
MatchString reports whether a string s contains any match of a regular expression.
func NewDuration ¶
NewDuration returns a duration pointer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.