You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: output.go
    path of file: ./repos/benthos/internal/impl/amqp1
    
    the code of the file until where you have to start completion: package amqp1

import (
	"context"
	"errors"
	"fmt"
	"strings"
	"sync"

	"github.com/Azure/go-amqp"

	"github.com/benthosdev/benthos/v4/internal/component"
	"github.com/benthosdev/benthos/v4/public/bloblang"
	"github.com/benthosdev/benthos/v4/public/service"
)

func amqp1OutputSpec() *service.ConfigSpec {
	return service.NewConfigSpec().
    
func init() {
	err := service.RegisterOutput("amqp_1", amqp1OutputSpec(),
		func(conf *service.ParsedConfig, mgr *service.Resources) (service.Output, int, error) {
			w, err := amqp1WriterFromParsed(conf, mgr)
			if err != nil {
				return nil, 0, err
			}

			mIF, err := conf.FieldMaxInFlight()
			if err != nil {
				return nil, 0, err
			}

			return w, mIF, nil
		})
	if err != nil {
		panic(err)
	}
}