upd:编码规范

This commit is contained in:
2025-02-26 21:14:42 +08:00
parent b1d07345b1
commit 2873327ba5
23 changed files with 1052 additions and 933 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
package core
import (
"OdMediaPicker/util"
"OdMediaPicker/vars"
"ImageVideoResolutionPickerTool/util"
"ImageVideoResolutionPickerTool/vars"
"fmt"
"github.com/redmask-hb/GoSimplePrint/goPrint"
"log"
@@ -57,7 +57,7 @@ func (FileScanner) DoFilter() {
}
// mime格式为application/octet-stream的视频
ext := path.Ext(globalFilePath)
if isSupportVideo(ext) {
if util.IsSupportVideo(ext) {
vars.GlobalVideoPathList = append(vars.GlobalVideoPathList, globalFilePath)
bar.PrintBar(util.CalcPercentage(count, total))
continue
@@ -67,7 +67,7 @@ func (FileScanner) DoFilter() {
bar.PrintBar(util.CalcPercentage(count, total))
continue
}
if isSupportImage(ext) {
if util.IsSupportImage(ext) {
vars.GlobalImagePathList = append(vars.GlobalImagePathList, globalFilePath)
bar.PrintBar(util.CalcPercentage(count, total))
continue