func (c *Containers) Add(id string, new Container) {
	// Is container already in containers?
	existing, ok := (*c)[id]

	if !ok {
		(*c)[id] = new

		return
	}

	// This is an old state (we know a newer state). Ignore and
	// return.
	if existing.Changed.After(new.Changed) {
		return
	}

	// Remember the new state.
	(*c)[id] = new
}
// Add a container to the list of monitored containers.
Add a container to the list of monitored containers.
// Add a container to the list of monitored containers .
func (c *Containers) Add(id string, new Container) {
	existing, ok := (*c)[id]
	if !ok {
		(*c)[id] = new
		return
	}
	if existing.Changed.After(new.Changed) {
		return
	}
	(*c)[id] = new
}
func ( c * Containers ) Add ( id string , new Container ) { existing , ok := ( * c ) [ id ] if ! ok { ( * c ) [ id ] = new return } if existing . Changed . After ( new . Changed ) { return } ( * c ) [ id ] = new }
Add a container to the list of monitored containers.
Add a container to the list of monitored containers .
// Is container already in containers? // This is an old state (we know a newer state). Ignore and // return. // Remember the new state.