1 Star 0 Fork 468

万物超弦/go-fastdfs

forked from sjqzhang/go-fastdfs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 688 Bytes
一键复制 编辑 原始数据 按行查看 历史
package main
import (
"github.com/sjqzhang/go-fastdfs/cmd/doc"
"github.com/sjqzhang/go-fastdfs/cmd/server"
"github.com/sjqzhang/go-fastdfs/cmd/version"
dfs "github.com/sjqzhang/go-fastdfs/server"
"github.com/spf13/cobra"
//_ "go.uber.org/automaxprocs" // 根据容器配额设置 maxprocs
_ "net/http/pprof" // 注册 pprof 接口
)
var (
VERSION string
BUILD_TIME string
GO_VERSION string
GIT_VERSION string
)
func main() {
dfs.VERSION = VERSION
dfs.BUILD_TIME = BUILD_TIME
dfs.GO_VERSION = GO_VERSION
dfs.GIT_VERSION = GIT_VERSION
root := cobra.Command{Use: "fileserver"}
root.AddCommand(
version.Cmd,
doc.Cmd,
server.Cmd,
)
root.Execute()
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/sky0535/go-fastdfs.git
git@gitee.com:sky0535/go-fastdfs.git
sky0535
go-fastdfs
go-fastdfs
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385