From 3ca096b4acb0f2036d8dbf209178b76f6c2ed376 Mon Sep 17 00:00:00 2001 From: dudaodong Date: Fri, 21 Jan 2022 14:54:55 +0800 Subject: [PATCH] update MiMeType func comment --- fileutil/file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fileutil/file.go b/fileutil/file.go index f042914..11812a4 100644 --- a/fileutil/file.go +++ b/fileutil/file.go @@ -262,7 +262,7 @@ func FileMode(path string) (fs.FileMode, error) { } // MiMeType return file mime type -// file should be string or *os.File +// param `file` should be string(file path) or *os.File func MiMeType(file interface{}) string { var mediatype string