added pkgs
This commit is contained in:
parent
1dce375512
commit
de82c22e77
5 changed files with 79 additions and 0 deletions
11
pkg/utils/cpus.go
Normal file
11
pkg/utils/cpus.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package utils
|
||||
|
||||
import "runtime"
|
||||
|
||||
type cpuUtil interface {
|
||||
NumCPU() int
|
||||
}
|
||||
|
||||
func (h *Handler) NumCPU() int {
|
||||
return runtime.NumCPU()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue