4 Star 15 Fork 3

靖天/PhotoPoint

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
main.go 763 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"photopoint/controllers"
"photopoint/gui"
"photopoint/models"
"github.com/astaxie/beego"
"flag"
"log"
"path/filepath"
"fmt"
)
func main() {
go gui.TrayIconInit()
fmt.Println("initializing...")
flag.Parse()
root := filepath.Dir(flag.Arg(0)) + models.SPT
models.InitAll(root)
fmt.Println("good to go...")
beego.Router("/", &controllers.FolderController{})
beego.Router("/imgs", &controllers.ImgListController{})
log.Println(root)
beego.SetStaticPath("/rc", root)
beego.SetStaticPath("/thumb", models.ThumbPath)
beego.SetStaticPath("/preview", models.PreviewPath)
beego.SetStaticPath("/image","static/img")
beego.SetStaticPath("/css","static/css")
beego.SetStaticPath("/js","static/js")
beego.Run()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ifq/PhotoPoint.git
git@gitee.com:ifq/PhotoPoint.git
ifq
PhotoPoint
PhotoPoint
master

搜索帮助