utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckMinVersion

func CheckMinVersion(version, minVersion string) (bool, error)

CheckMinVersion checks if version is higher or equal than minVersion

func GetFilePathFromAugPath

func GetFilePathFromAugPath(vhostPath string) string

GetFilePathFromAugPath get file path from augeas_vhost_path

func GetInternalAugPath

func GetInternalAugPath(vhostPath string) string

GetInternalAugPath returns file augeas internal path

func IsCommandExist

func IsCommandExist(name string) bool

IsCommandExist checks if command exists via which linus command

func StrSlicesDifference

func StrSlicesDifference(a, b []string) []string

StrSlicesDifference returns all elements of the first slice which do not present in the second one

func TranslateFnmatchToRegex

func TranslateFnmatchToRegex(fnmatchStr string) string

TranslateFnmatchToRegex converts a shell PATTERN to a regular expression string

Types

This section is empty.

Jump to

Keyboard shortcuts

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