Documentation ¶
Index ¶
- Variables
- func Close(c io.Closer)
- func ExistEnv(key string) bool
- func Exists(path string, checks ...func(os.FileInfo) bool) bool
- func ExistsDevice(path string) bool
- func ExistsDir(path string) bool
- func ExistsFile(path string) bool
- func ExistsLink(path string) bool
- func ExistsSocket(path string) bool
- func ExpandEnv(key string, def ...string) string
- func Getenv(key string, def ...string) string
- func Open(path string) (*os.File, error)
- func WriteFile(name string, data []byte, perm os.FileMode) error
- type MmapFile
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPageFault = errors.New("page fault occurred while reading from memory map")
Functions ¶
func ExistsDevice ¶
ExistsDevice checks if the given path exists and is a device.
func ExistsFile ¶
ExistsFile checks if the given path exists and is a regular file.
func ExistsLink ¶
ExistsLink checks if the given path exists and is a symbolic link.
func ExistsSocket ¶
ExistsSocket checks if the given path exists and is a socket.
func Getenv ¶
Getenv retrieves the value of the environment variable named by the key. It returns the default, which will be empty if the variable is not present. To distinguish between an empty value and an unset value, use LookupEnv.
Types ¶
type MmapFile ¶
type MmapFile struct {
// contains filtered or unexported fields
}
func OpenMmapFile ¶
Click to show internal directories.
Click to hide internal directories.