helpers

package
v0.3.2-0...-6117ab2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERROR        outputType = 0
	WARN         outputType = 1
	INFO         outputType = 2
	DEMO         outputType = 3
	CONFIDENTIAL outputType = 4
)

outputTypes that can be printed

Variables

This section is empty.

Functions

func ColorizeCommand

func ColorizeCommand(_command string) string

ColorizeCommand prints a dit command that will have a certain color to highlight it

func ExitAndLog

func ExitAndLog(code int)

ExitAndLog finalizes the logging and exits the program

func GetUserInput

func GetUserInput(_prompt string) string

GetUserInput will prompt the user if there are more possibilies than 2

func GetUserInputChoice

func GetUserInputChoice(_prompt string, _selection1 string, _selection2 string) string

GetUserInputChoice will prompt the user if there are only two choices (like a or b)

func PrintLine

func PrintLine(_line string, _level outputType)

PrintLine will print a log output with a line ending

func Printf

func Printf(_line string, _level outputType)

Printf will print a log output without a line ending

Types

This section is empty.

Jump to

Keyboard shortcuts

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