Documentation ¶
Index ¶
- func FileAppend(name string, b []byte) error
- func GitOpenOrInit(path string) (repo *git.Repository, initted bool, err error)
- func GitWriteAdd(repo *git.Repository, relpath string, data []byte, perm fs.FileMode) error
- func OpenFileExisting(name string, flag int) (*os.File, error)
- func PWDIfEmpty(path string) (string, error)
- func PathResolveTilde(path string) (string, error)
- func RenameNoOverwrite(oldpath, newpath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitOpenOrInit ¶
func GitWriteAdd ¶
writes a file, and adds it
func OpenFileExisting ¶
os.OpenFile, but fs.ErrNotExist
func PathResolveTilde ¶
func RenameNoOverwrite ¶
os.Rename(), but newpath:fs.ErrExist
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.