Documentation
¶
Index ¶
- Variables
- func ConfirmAction() (bool, error)
- func CopyFile(src, dst string) error
- func CreateDirectory(path string) error
- func CreateFile(path string) error
- func CreateTempFileFromBytes(content []byte) *os.File
- func Exists(path string) (bool, error)
- func GetGPGID(path string) (string, error)
- func GetHomeDir() string
- func GetPassword() (string, error)
- func InitConfig(Path string, Name string, configFile string) (string, string, string, error)
- func PrintDirectoryTree(dirPath string, indent string) error
- func ReadBytesFromFile(filePath string) ([]byte, error)
- func ReadDirectory(path string) ([]fs.DirEntry, error)
- func ReadFile(path string) ([]byte, error)
- func RemoveDirectory(path string) error
- func WriteBytesToFile(path string, data []byte) error
- func WriteToFile(path string, data string) error
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultPath = filepath.Join(GetHomeDir(), ".gopwd") DefaultName = "vault" )
Functions ¶
func ConfirmAction ¶
func CreateDirectory ¶
func CreateFile ¶
func CreateTempFileFromBytes ¶
func GetHomeDir ¶
func GetHomeDir() string
func GetPassword ¶
func InitConfig ¶
func PrintDirectoryTree ¶
func ReadBytesFromFile ¶
ReadBytesFromFile reads the content of a file and returns it as a byte slice.
func RemoveDirectory ¶
func WriteBytesToFile ¶
func WriteToFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.