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 GetNestedDirectories(dirPath string) ([]string, error)
- func GetPassword() (string, error)
- func InitConfig(Path string, configFile 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 RemoveFile(path string) error
- func WalkDir(path string) ([]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", "vault")
)
Functions ¶
func ConfirmAction ¶
func CreateDirectory ¶
func CreateFile ¶
func CreateTempFileFromBytes ¶
func GetHomeDir ¶
func GetHomeDir() string
func GetNestedDirectories ¶ added in v1.1.3
func GetPassword ¶
func PrintDirectoryTree ¶
func ReadBytesFromFile ¶
ReadBytesFromFile reads the content of a file and returns it as a byte slice.
func RemoveDirectory ¶
func RemoveFile ¶ added in v1.1.3
func WriteBytesToFile ¶
func WriteToFile ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.