7 Star 46 Fork 4

Andyfoo / GoSubTitleSearcher

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
main.go 815 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"GoSubTitleSearcher/config"
"GoSubTitleSearcher/ui"
"fmt"
"os"
"GoSubTitleSearcher/server"
"github.com/Andyfoo/go-xutils/xlog"
)
func init() {
//config.DisplayUrl = false
}
func main() {
lf := xlog.OpenFile(config.AppPath + "/logs.txt")
if lf == nil {
fmt.Errorf("Failed to open log file")
return
}
defer lf.Close()
defer xlog.Init("APP", true, false, lf).Close()
xlog.Info("############################ start app ################################")
// if config.IsDebug {
// xlog.Std = xlog.NewFile(config.AppPath+"/logs.txt", "", xlog.Ldefault)
// }
xlog.Infof("start...[%d]", os.Getpid())
//当前目录 os.Getwd()
if len(os.Args) > 1 {
config.SetMovFile(os.Args[1])
}
server.Start()
ui.MainForm()
}
func exitTask() {
os.RemoveAll(config.TmpDataPath)
}
Go
1
https://gitee.com/andyfoo/GoSubTitleSearcher.git
git@gitee.com:andyfoo/GoSubTitleSearcher.git
andyfoo
GoSubTitleSearcher
GoSubTitleSearcher
master

搜索帮助