fix golint issues in core/proc (#502)

This commit is contained in:
Kevin Wan
2021-02-22 10:07:39 +08:00
committed by GitHub
parent 221f923fae
commit d84e3d4b53
4 changed files with 10 additions and 0 deletions

View File

@@ -15,10 +15,12 @@ func init() {
pid = os.Getpid()
}
// Pid returns pid of current process.
func Pid() int {
return pid
}
// ProcessName returns the processname, same as the command name.
func ProcessName() string {
return procName
}