func (l NodeList) Close() error {
	for _, n := range l {
		if err := n.Close(); err != nil {
			return err
		}
	}
	return nil
}
Close the connections for each Node in the NodeList.
package gommander
import (
	"bytes"
	"io"
	"os"
	"sync"
)
type NodeList []*Node
func (l NodeList) Filter(fn func(*Node) bool) NodeList {
	var p []*Node
	for _, v := range l {
		if fn(v) {
			p = append(p, v)
		}
	}
	return p
}
func (l NodeList) Connect() error {
	for _, n := range l {
		if err := n.Connect(); err != nil {
			return err
		}
	}
	return nil
}