utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filepath string) bool

FileExists checks if a file exists and is not a directory before we try using it to prevent further errors.

func FolderExists

func FolderExists(dirpath string) bool

FolderExists checks if a dir exists

func ReadBool

func ReadBool(displayText string) bool

ReadBool asks user to input y/n and returns a bool

func ReadInputString

func ReadInputString(displayText string, s *string)

ReadInputString reads a string from Stdin and puts that value in s

func ReadInputStringHideInput

func ReadInputStringHideInput(displayText string) ([]byte, error)

ReadInputStringHideInput reads input from user hiding Stdin chars

Types

This section is empty.

Jump to

Keyboard shortcuts

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