func Get(t string) (printer.Printer, error) {
	ty, err := printer.TypeString(t)
	if err != nil {
		return nil, fmt.Errorf("no printer defined for %s: %w", ty, errcode.ErrPrinterNotFound)
	}
	p, ok := printers[ty]
	if !ok {
		return nil, fmt.Errorf("no printer defined for %s: %w", ty, errcode.ErrPrinterNotFound)
	}
	return p, nil
}
Get returns the specific Printer for t
package factory
import (
	"fmt"
	"github.com/cycloidio/inframap/errcode"
	"github.com/cycloidio/inframap/printer"
	"github.com/cycloidio/inframap/printer/dot"
)
var (
	printers = map[printer.Type]printer.Printer{
		printer.DOT: dot.Dot{},
	}
)