common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskPass

func AskPass(msg string) string

AskPass prompt to enter password through terminal

func AskQuestion

func AskQuestion(msg string, in []string) (anwser string)

AskQuestion prompt to enter anwser through terminal

func Exit

func Exit(msg string, code int)

func GetConfigPath

func GetConfigPath(name string) (path string)

func GetHomeDir

func GetHomeDir() (home string)

GetHomeDir returns the current user's home directory. but the $HOME environment variable is the first.

func GetHostPath

func GetHostPath(name string) (path string)

func GetKeyString

func GetKeyString(keyfile string) (string, error)

func GetRandNumber

func GetRandNumber(min, max int) int

func MakeHash

func MakeHash(in []string) string

func MakeID

func MakeID(in []string) string

func MakeKeyfile

func MakeKeyfile(name string, force bool) (string, error)

MakeKeyfile generate the key and save it to the application directory

Types

This section is empty.

Jump to

Keyboard shortcuts

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