From d3dbc4e9de83d4b0b4f5695e05e439db6cce1048 Mon Sep 17 00:00:00 2001 From: Matrix-X Date: Sun, 8 Jan 2023 13:41:07 +0800 Subject: [PATCH] feat(file): add ConvertFileHandleToReader --- os/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os/file.go b/os/file.go index 1b8436e..32638da 100644 --- a/os/file.go +++ b/os/file.go @@ -50,7 +50,7 @@ func ConvertFileHandleToReader(obj interface{}) (data io.Reader, err error) { return obj.(io.Reader), nil default: - return nil, errors.New("not support file data") + return nil, errors.New("not support file handle data") } }