Skip to content

Commit

Permalink
taskstats: gofumpt
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Layher <mdlayher@gmail.com>
  • Loading branch information
mdlayher committed Jul 12, 2023
1 parent 2ce5942 commit 8ea79a4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ func New() (*Client, error) {

// CGroupStats retrieves cgroup statistics for the cgroup specified by path.
// Path should be a CPU cgroup path found in sysfs, such as:
// - /sys/fs/cgroup/cpu
// - /sys/fs/cgroup/cpu/docker
// - /sys/fs/cgroup/cpu/docker/(hexadecimal identifier)
// - /sys/fs/cgroup/cpu
// - /sys/fs/cgroup/cpu/docker
// - /sys/fs/cgroup/cpu/docker/(hexadecimal identifier)
func (c *Client) CGroupStats(path string) (*CGroupStats, error) {
return c.c.CGroupStats(path)
}
Expand Down
3 changes: 2 additions & 1 deletion client_linux_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build linux
//go:build linux
// +build linux

package taskstats_test

Expand Down
13 changes: 6 additions & 7 deletions client_others.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//+build !linux
//go:build !linux
// +build !linux

package taskstats

Expand All @@ -7,12 +8,10 @@ import (
"runtime"
)

var (
// errUnimplemented is returned by all functions on platforms that
// cannot make use of taskstats.
errUnimplemented = fmt.Errorf("taskstats not implemented on %s/%s",
runtime.GOOS, runtime.GOARCH)
)
// errUnimplemented is returned by all functions on platforms that
// cannot make use of taskstats.
var errUnimplemented = fmt.Errorf("taskstats not implemented on %s/%s",
runtime.GOOS, runtime.GOARCH)

var _ osClient = &client{}

Expand Down

0 comments on commit 8ea79a4

Please sign in to comment.