262 Star 894 Fork 37

无闻 / gogs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gogs.go 795 Bytes
一键复制 编辑 原始数据 按行查看 历史
Joe Chen 提交于 2022-10-09 23:12 . build: remove support of Go 1.17 (#7177)
//go:build go1.18
// Copyright 2014 The Gogs Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
// Gogs is a painless self-hosted Git Service.
package main
import (
"os"
"github.com/urfave/cli"
log "unknwon.dev/clog/v2"
"gogs.io/gogs/internal/cmd"
"gogs.io/gogs/internal/conf"
)
func init() {
conf.App.Version = "0.13.0+dev"
}
func main() {
app := cli.NewApp()
app.Name = "Gogs"
app.Usage = "A painless self-hosted Git service"
app.Version = conf.App.Version
app.Commands = []cli.Command{
cmd.Web,
cmd.Serv,
cmd.Hook,
cmd.Cert,
cmd.Admin,
cmd.Import,
cmd.Backup,
cmd.Restore,
}
if err := app.Run(os.Args); err != nil {
log.Fatal("Failed to start application: %v", err)
}
}
Go
1
https://gitee.com/unknwon/gogs.git
git@gitee.com:unknwon/gogs.git
unknwon
gogs
gogs
main

搜索帮助