pkgutil/pkg.go
func New(pkg PackageType) Packager {
	switch pkg {
	case Deb:
		return new(deb)
	case RPM:
		return new(rpm)
	case Pacman:
		return new(pacman)
	case Ebuild:
		return new(ebuild)
	case ZYpp:
		return new(zypp)
	}
	panic("unreachable")
}
func New(pkg PackageType) Packager {
	switch pkg {
	case Deb:
		return new(deb)
	case RPM:
		return new(rpm)
	case Pacman:
		return new(pacman)
	case Ebuild:
		return new(ebuild)
	case ZYpp:
		return new(zypp)
	}
	panic("unreachable")
}
func New ( pkg PackageType ) Packager { switch pkg { case Deb : return new ( deb ) case RPM : return new ( rpm ) case Pacman : return new ( pacman ) case Ebuild : return new ( ebuild ) case ZYpp : return new ( zypp ) } panic ( " " ) }
// New returns the interface to handle the package manager.
New returns the interface to handle the package manager .