pkg

package
v0.0.0-...-752bcdd Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileAppend

func FileAppend(name string, b []byte) error

append to file with fs.ErrNotExist

WARN: perhaps behaviour with async

func GitRemoteURLGet0

func GitRemoteURLGet0(r *git.Repository, remote string) (*url.URL, error)

func OpenFileExisting

func OpenFileExisting(name string, flag int) (*os.File, error)

os.OpenFile, but fs.ErrNotExist

func PWDIfEmpty

func PWDIfEmpty(path string) (string, error)

returns path, or $PWD if path empty

func RenameNoOverwrite

func RenameNoOverwrite(oldpath, newpath string) error

os.Rename(), but newpath:fs.ErrExist

Types

This section is empty.

Directories

Path Synopsis
encoding

Jump to

Keyboard shortcuts

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