Documentation ¶ Index ¶ Constants type Code func (c Code) Code() Code func (c Code) Error() string type Error Constants ¶ View Source const ( InvalidPath = Code(iota) Exist NotExist DirNotEmpty NotFile NotDirectory HashNotAvailable ) The valid error codes. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Code ¶ type Code int Code represents an fs error. func (Code) Code ¶ func (c Code) Code() Code Code returns the code for the error c. func (Code) Error ¶ func (c Code) Error() string String returns a description of the error with error code c. type Error ¶ type Error interface { // Code returns the code associated with this error. Code() Code // Error returns a string description of the error. Error() string } Error is the interface satisfied by an error with a Code. Source Files ¶ View all Source files errors.go Click to show internal directories. Click to hide internal directories.