aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--filesystem/mountpoint.go19
1 files changed, 8 insertions, 11 deletions
diff --git a/filesystem/mountpoint.go b/filesystem/mountpoint.go
index 991a573..7ef91ce 100644
--- a/filesystem/mountpoint.go
+++ b/filesystem/mountpoint.go
@@ -22,8 +22,16 @@
package filesystem
import (
+ "fmt"
"io/ioutil"
+ "log"
"os"
+ "path/filepath"
+ "sort"
+ "strings"
+ "sync"
+
+ "github.com/pkg/errors"
)
/*
@@ -35,17 +43,6 @@ const char* read_mode = "r";
*/
import "C"
-import (
- "fmt"
- "log"
- "path/filepath"
- "sort"
- "strings"
- "sync"
-
- "github.com/pkg/errors"
-)
-
var (
// These maps hold data about the state of the system's mountpoints.
mountsByPath map[string]*Mount