gofmt all files
This commit is contained in:
parent
48129c03d1
commit
7133ab0f7d
4
fs/fs.go
4
fs/fs.go
@ -12,9 +12,9 @@ import "C"
|
||||
import (
|
||||
"bufio"
|
||||
"fmt"
|
||||
"path"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path"
|
||||
"regexp"
|
||||
"strconv"
|
||||
"strings"
|
||||
@ -26,6 +26,7 @@ import (
|
||||
)
|
||||
|
||||
var partitionRegex = regexp.MustCompile("sd[a-z]+\\d")
|
||||
|
||||
type partition struct {
|
||||
mountpoint string
|
||||
major uint
|
||||
@ -98,7 +99,6 @@ func getDiskStatsMap(diskStatsFile string) (map[string]DiskStats, error) {
|
||||
defer file.Close()
|
||||
scanner := bufio.NewScanner(file)
|
||||
|
||||
|
||||
for scanner.Scan() {
|
||||
line := scanner.Text()
|
||||
words := strings.Fields(line)
|
||||
|
Loading…
Reference in New Issue
Block a user