func New()

in internal/output/factory.go [28:39]


func New(opts *Options) (Output, error) {
	if opts.Protocol == "" {
		return nil, fmt.Errorf("protocol is required")
	}

	factory, found := registry[strings.ToLower(opts.Protocol)]
	if !found {
		return nil, fmt.Errorf("unknown protocol %q", opts.Protocol)
	}

	return factory(opts)
}