func (s GetResponse) Encode() ([]byte, error) {
	buf := &bytes.Buffer{}
	for _, entry := range s.PDU.rawSequence {
		encodedEntry, err := entry.Encode()
		if err != nil {
			return nil, err
		}
		_, err = buf.Write(encodedEntry)
		if err != nil {
			return nil, err
		}
	}
	seqLength := buf.Len()
	return append(encodeHeaderSequence(0xa2, seqLength), buf.Bytes()...), nil
}
Encode encodes a GetResponse with the proper header.
package snmp
import (
	"bytes"
	"io"
)
type GetResponse struct {
	PDU
}