utils

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(slice []string, elementToFind string) bool

Contains is a helper method to check if a string element exist in the string slice

func ExecInteractivePrompt added in v0.1.0

func ExecInteractivePrompt(name string, input string) error

ExecInteractivePrompt calls a command, expects an interactive prompt to start, passes the given input into it.

func FolderExists added in v0.0.1

func FolderExists(path string) error

func GetAbsPath added in v0.0.1

func GetAbsPath(path string) string

func GetCurrentServerFQDN added in v0.2.0

func GetCurrentServerFQDN(serverConfig string) string

func GetCurrentServerVersion added in v0.0.1

func GetCurrentServerVersion(serverConfig string) (string, string)

func ReadFileByLine added in v0.1.0

func ReadFileByLine(path string) []string

func ReverseArray

func ReverseArray(slice interface{})

ReverseArray reverses the array

func ScannerFunc added in v0.0.1

func ScannerFunc(path string, search string) (string, error)

func ValidateDate added in v0.1.0

func ValidateDate(date string) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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