oscommon

package module
v0.0.0-...-49eea17 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 5 Imported by: 9

README

os-common

Golang OS common types

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrNotDir

func ErrNotDir(name string, msg ...string) error

func ErrNotFile

func ErrNotFile(name string, msg ...string) error

func ErrNotFound

func ErrNotFound(name string, msg ...string) error

func IsErr

func IsErr(this error, err ...error) bool

func IsNotDir

func IsNotDir(err error) (ok bool)

func IsNotFile

func IsNotFile(err error) (ok bool)

func IsNotFound

func IsNotFound(err error) (ok bool)

func NewVirtualDirFileInfo

func NewVirtualDirFileInfo(name string) os.FileInfo

Types

type PathError

type PathError struct {
	Name     string
	Err      error
	Messages []string
}

func (*PathError) AddMessage

func (this *PathError) AddMessage(msg ...string) *PathError

func (*PathError) Error

func (ar *PathError) Error() string

type VirtualDirFileInfo

type VirtualDirFileInfo struct {
	// contains filtered or unexported fields
}

func (VirtualDirFileInfo) IsDir

func (d VirtualDirFileInfo) IsDir() bool

func (VirtualDirFileInfo) ModTime

func (d VirtualDirFileInfo) ModTime() (t time.Time)

func (VirtualDirFileInfo) Mode

func (d VirtualDirFileInfo) Mode() os.FileMode

func (VirtualDirFileInfo) Name

func (d VirtualDirFileInfo) Name() string

func (VirtualDirFileInfo) Size

func (d VirtualDirFileInfo) Size() int64

func (VirtualDirFileInfo) Sys

func (d VirtualDirFileInfo) Sys() interface{}

Jump to

Keyboard shortcuts

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