Files
Ronni Skansing 07c8adaf76 update vendor deps
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
2025-11-06 23:31:08 +01:00

18 lines
567 B
Go

package g
import "fmt"
// ErrFileNotExist represents an error for when a file does not exist.
type ErrFileNotExist struct{ Msg string }
// Error returns the error message for ErrFileNotExist.
func (e *ErrFileNotExist) Error() string { return fmt.Sprintf("no such file: %s", e.Msg) }
// ErrFileClosed represents an error for when a file is already closed.
type ErrFileClosed struct{ Msg string }
// Error returns the error message for ErrFileClosed.
func (e *ErrFileClosed) Error() string {
return fmt.Sprintf("%s: file is already closed and unlocked", e.Msg)
}