errno

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errno converts error number values into error-type values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(e syscall.Errno) error

Error turns a syscall.Errno in an ordinary error-type value -- this mimics the behavior of golang.org/x/sys/unix for returning boxed syscall.EAGAIN, syscall.EINVAL and syscall.ENOENT instead of their unix package counterparts (The Source tells us that this prevents allocations at runtime). This function returns nil if the error number is zero.

Types

This section is empty.

Jump to

Keyboard shortcuts

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