utils

package module
v0.0.0-...-05712f8 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateName

func GenerateName() string

generating a random name for temp DB files

func GetPrefix

func GetPrefix() string

getting correct prefix depending on the user's OS to get a path where a temp DB will be stored

func IsIntalled

func IsIntalled(name string) (bool, error)

func Mkdir

func Mkdir(path string) error

creating a new directory

func Mkfile

func Mkfile(name string) error

creating a new file

func Notify

func Notify(summary, body string)

func OpenURL

func OpenURL(url string)

opening a URL in the browser

func PathExists

func PathExists(path string) bool

checking if a directory or file exists

func ReadFile

func ReadFile(path string) (out string, err error)

reading a file

func ReadLine

func ReadLine() (string, error)

reading a line from stdin

func Rmfile

func Rmfile(path string) error

removing a file

func ShowMenu

func ShowMenu(name string, passwords string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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