1 Star 0 Fork 0

mosache / go-zero

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
process.go 242 Bytes
一键复制 编辑 原始数据 按行查看 历史
kevwan 提交于 2020-07-26 17:09 . initial import
package proc
import (
"os"
"path/filepath"
)
var (
procName string
pid int
)
func init() {
procName = filepath.Base(os.Args[0])
pid = os.Getpid()
}
func Pid() int {
return pid
}
func ProcessName() string {
return procName
}
1
https://gitee.com/mosache/go-zero.git
git@gitee.com:mosache/go-zero.git
mosache
go-zero
go-zero
dfb45c801a6c

搜索帮助