restructure container,connectors in subpackage

This commit is contained in:
Bradley Cicenas
2017-06-08 14:51:02 +00:00
parent 8fb7a8988f
commit b85ca680f0
9 changed files with 50 additions and 32 deletions

View File

@@ -6,6 +6,7 @@ import (
"os"
"github.com/bcicen/ctop/config"
"github.com/bcicen/ctop/container"
"github.com/bcicen/ctop/cwidgets/compact"
"github.com/bcicen/ctop/logging"
"github.com/bcicen/ctop/widgets"
@@ -102,7 +103,7 @@ func Shutdown() {
// ensure a given sort field is valid
func validSort(s string) {
if _, ok := Sorters[s]; !ok {
if _, ok := container.Sorters[s]; !ok {
fmt.Printf("invalid sort field: %s\n", s)
os.Exit(1)
}