func (t MachineTag) ContainerType() string {
	parts := strings.Split(t.id, "-")
	size := len(parts)
	if size < 3 {
		return ""
	}
	return parts[size-2]
}
// ContainerType returns the type of container for this machine.
// If the machine isn't a container, then the empty string is returned.
ContainerType returns the type of container for this machine.
If the machine isn't a container, then the empty string is returned.
// ContainerType returns the type of container for this machine . // If the machine isn ' t a container then the empty string is returned .
func (t MachineTag) ContainerType() string {
	parts := strings.Split(t.id, "-")
	size := len(parts)
	if size < 3 {
		return ""
	}
	return parts[size-2]
}
func ( t MachineTag ) ContainerType ( ) string { parts := strings . Split ( t . id , " " ) size := len ( parts ) if size < 3 { return " " } return parts [ size - 2 ] }
ContainerType returns the type of container for this machine.
ContainerType returns the type of container for this machine .