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: methods_generated.go
    path of file: ./repos/fibratus/pkg/outputs/amqp/_fixtures/garagemq/amqp
    
    the code of the file until where you have to start completion: // Package amqp for read, write, parse amqp frames
// Autogenerated code. Do not edit.
package amqp

import (
	"fmt"
	"io"
	"time"
)

// Method represents base method i
    
func (method *BasicNack) Write(writer io.Writer, protoVersion string) (err error) {

	if err = WriteLonglong(writer, method.DeliveryTag); err != nil {
		return err
	}

	var bits byte

	if method.Multiple {
		bits |= 1 << 0
	}

	if method.Requeue {
		bits |= 1 << 1
	}

	if err = WriteOctet(writer, bits); err != nil {
		return err
	}

	return
}