1 Star 0 Fork 467

学术派/go-fastdfs

forked from sjqzhang/go-fastdfs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
main.go 688 Bytes
一键复制 编辑 原始数据 按行查看 历史
sjqzhang 提交于 2022-02-22 15:18 . support pporf debug option in config
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()
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/academics/go-fastdfs.git
git@gitee.com:academics/go-fastdfs.git
academics
go-fastdfs
go-fastdfs
master

搜索帮助