1 Star 2 Fork 1

ops30/duplicate_file

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 585 Bytes
一键复制 编辑 原始数据 按行查看 历史
cilidm 提交于 2020-12-15 21:21 +08:00 . first commit
package main
import (
"duplicate_file/router"
"duplicate_file/service"
"duplicate_file/util"
"flag"
"github.com/cilidm/toolbox/levelDB"
"os"
)
var (
dir string
isNew bool
)
func init() {
levelDB.InitServer("runtime/")
flag.StringVar(&dir, "p", "", "查找路径")
flag.BoolVar(&isNew, "n", false, "是否新开启任务")
flag.Parse()
util.CheckTemplate()
}
func main() {
if isNew && util.CheckFileIsExist("lock") {
os.Remove("lock")
}
if util.CheckFileIsExist("lock") == false {
if service.InitSearchFiles(dir) == false {
return
}
}
router.Server()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ops30/duplicate_file.git
git@gitee.com:ops30/duplicate_file.git
ops30
duplicate_file
duplicate_file
main

搜索帮助