Documentation
¶
Index ¶
- Constants
- func Create(path string, filename string) error
- func Delete(path string, filename string) error
- func Exists(path string, filename string) bool
- func Get(path string, filename string) (string, error)
- func GetAppDir() string
- func GetDirectionAndFilename(fullPath string) (string, string)
- func GetFullPath(direction string, filename string) string
- func GetOpenFile(path string, filename string, flags int) (*os.File, error)
- func GetPrivateKeysDir() string
- func Write(path string, filename string, data string) error
Constants ¶
View Source
const CharHidden = "."
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a new file at the specified path, including parent directories if needed. Returns error if file creation fails.
func Exists ¶
Exists checks if a file exists at the given path and is not a directory. Returns boolean indicating existence.
func Get ¶
Get reads and returns the contents of a file as a string. Returns error if file cannot be read.
func GetDirectionAndFilename ¶
GetDirectionAndFilename get dir and filename from full path
func GetFullPath ¶
GetFullPath get full path from dir and filename
func GetOpenFile ¶
GetOpenFile opens a file with specified flags (os.O_RDWR, etc.) and returns the file handle. Returns error if file cannot be opened.
func GetPrivateKeysDir ¶
func GetPrivateKeysDir() string
GetPrivateKeysDir get dir where save private keys
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.