mirror of
https://github.com/shirou/gopsutil.git
synced 2025-05-10 19:29:14 +08:00

Currently, ClocksPerSec is determined by exec'ing getconf in func init, i.e. on startup of every program importing the package. getconf might not be present on some systems or is not executable by the current user. To avoid this hard to control dependency, use the github.com/tklauser/go-sysconf package which implements sysconf(3) entirely in Go without cgo. The package is supported on all platforms currently supported by the cpu and v3/cpu package of gopsutil.
47 lines
948 B
TOML
47 lines
948 B
TOML
# Gopkg.toml example
|
|
#
|
|
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
|
|
# for detailed Gopkg.toml documentation.
|
|
#
|
|
# required = ["github.com/user/thing/cmd/thing"]
|
|
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
|
|
#
|
|
# [[constraint]]
|
|
# name = "github.com/user/project"
|
|
# version = "1.0.0"
|
|
#
|
|
# [[constraint]]
|
|
# name = "github.com/user/project2"
|
|
# branch = "dev"
|
|
# source = "github.com/myfork/project2"
|
|
#
|
|
# [[override]]
|
|
# name = "github.com/x/y"
|
|
# version = "2.4.0"
|
|
#
|
|
# [prune]
|
|
# non-go = false
|
|
# go-tests = true
|
|
# unused-packages = true
|
|
|
|
|
|
[[constraint]]
|
|
name = "github.com/StackExchange/wmi"
|
|
version = "1.0.0"
|
|
|
|
[[constraint]]
|
|
name = "github.com/stretchr/testify"
|
|
version = "1.2.2"
|
|
|
|
[[constraint]]
|
|
name = "github.com/tklauser/go-sysconf"
|
|
version = "0.3.4"
|
|
|
|
[[constraint]]
|
|
branch = "master"
|
|
name = "golang.org/x/sys"
|
|
|
|
[prune]
|
|
go-tests = true
|
|
unused-packages = true
|