utils

package
v0.0.0-...-ea924cd Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 8 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 FindAnyFilesInDirectory

func FindAnyFilesInDirectory(directory string, files []string) (string, error)

FindAnyFilesInDirectory detects any of the files in the specified directory

func FindFirstExistedDirectory

func FindFirstExistedDirectory(directories []string) (string, error)

func GetCommandBinPath

func GetCommandBinPath(name string) (string, error)

GetCommandPath returns path to the binary via "which" linux command returns path to the command binary

func IsRhelOsFamily

func IsRhelOsFamily() (bool, error)

func StrSlicesDifference

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

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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