move field header into CompactGrid, add Align() method

This commit is contained in:
Bradley Cicenas
2017-02-26 07:31:23 +00:00
parent b84e22fb90
commit 4709624b17
3 changed files with 59 additions and 38 deletions

View File

@@ -131,11 +131,6 @@ func (cm *ContainerMap) UpdateLoop() {
}
}
// Return number of containers/rows
func (cm *ContainerMap) Len() uint {
return uint(len(cm.containers))
}
// Get a single container, by ID
func (cm *ContainerMap) Get(id string) (*Container, bool) {
for _, c := range cm.containers {