refactor: interface{} -> any

This commit is contained in:
dudaodong committed 2022-03-16 18:41:40 +08:00
1 parent af480efa8c
commit c939b26cb8
34 files changed
+194 -195

No files matched your search

+1 -1
View File
@@ -263,7 +263,7 @@ func FileMode(path string) (fs.FileMode, error) {
// MiMeType return file mime type
// param `file` should be string(file path) or *os.File
func MiMeType(file interface{}) string {
func MiMeType(file any) string {
var mediatype string
readBuffer := func(f *os.File) ([]byte, error) {