1 Star 1 Fork 0

go-wena / proc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
status.go 400 Bytes
一键复制 编辑 原始数据 按行查看 历史
k3x 提交于 2021-06-19 02:11 . rename process to proc
package proc
import "fmt"
type Status int
const (
Ready Status = 1 << iota
Starting
Running
Stopping
Stopped
)
func (code Status) String() string {
switch code {
case Ready:
return "ready"
case Starting:
return "starting"
case Running:
return "running"
case Stopping:
return "stopping"
case Stopped:
return "stopped"
default:
return fmt.Sprintf("<unknown:%d>", code)
}
}
Go
1
https://gitee.com/go-wena/proc.git
git@gitee.com:go-wena/proc.git
go-wena
proc
proc
v0.1.3

搜索帮助