Documentation ¶
Index ¶
- func GetFilePerms(filename string) (os.FileMode, error)
- func GetFileSize(filename string) (int64, error)
- func MustExecutableFolder() string
- func MustGetFileSize(filename string) int64
- func MustLookupPaths(paths ...string)
- func MustPathExist(paths ...string)
- func MustPathNotExist(paths ...string)
- func MustTemporaryFileWithContent(dir string, prefix string, content []byte, mode os.FileMode) string
- func PathExists(path string) bool
- func PathNotExist(path string) bool
- func TemporaryFileWithContent(dir string, prefix string, content []byte, mode os.FileMode) (string, error)
- type ErrPath
- type ErrTemporaryFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFileSize ¶
func MustExecutableFolder ¶
func MustExecutableFolder() string
Get the current executable's folder or fail
func MustGetFileSize ¶
func MustLookupPaths ¶
func MustLookupPaths(paths ...string)
Exit with a panic if paths do not exist as command executables
Types ¶
type ErrPath ¶
type ErrPath struct {
// contains filtered or unexported fields
}
func (ErrPath) WrappedErrors ¶
type ErrTemporaryFile ¶
type ErrTemporaryFile struct {
// contains filtered or unexported fields
}
ErrPath is returned as the panic() context when a Must function is invoked as a wrapped error..
func (ErrTemporaryFile) Dir ¶
func (this ErrTemporaryFile) Dir() string
func (ErrTemporaryFile) Error ¶
func (this ErrTemporaryFile) Error() string
func (ErrTemporaryFile) Prefix ¶
func (this ErrTemporaryFile) Prefix() string
func (ErrTemporaryFile) WrappedErrors ¶
func (this ErrTemporaryFile) WrappedErrors() []error
Click to show internal directories.
Click to hide internal directories.