utl

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SIGTERM = unix.SIGTERM
)

Variables

This section is empty.

Functions

func GetSecret

func GetSecret(plaintext, filename string) (string, error)

GetSecret retrieves secret's value from plaintext or filename if defined

func MatchString

func MatchString(exp string, s string) bool

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

func NewDuration

func NewDuration(duration time.Duration) *time.Duration

NewDuration returns a duration pointer

func NewFalse

func NewFalse() *bool

NewFalse returns a false bool pointer

func NewTrue

func NewTrue() *bool

NewTrue returns a true bool pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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