utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package utils ...

*

Package utils ...

*

Index

Constants

This section is empty.

Variables

View Source
var AppName = "go-encryptor"

AppName is the application name

Functions

func ConfirmPrompt added in v1.0.1

func ConfirmPrompt(message string) bool

ConfirmPrompt will prompt to user for yes or no

func ErrorLogger

func ErrorLogger(err error)

ErrorLogger logs error

func GetVersion

func GetVersion() string

GetVersion return code of the application

func IsDir added in v1.0.1

func IsDir(path string) (bool, error)

IsDir is to check if its a dir

func PromptTermPass

func PromptTermPass(promptText string) ([]byte, error)

PromptTermPass takes password as user input

func ReadFile

func ReadFile(filename string) ([]byte, error)

ReadFile returns file data in bytes

func SaveFile

func SaveFile(filename string, data []byte) error

SaveFile save data to a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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