func parseHex(exclude string) ([]byte, error) {
    bytes := strings.Split(exclude, "\\x")
    hexstr := strings.Join(bytes[:], "")
    data, err := hex.DecodeString(hexstr)
    if err != nil {
        return nil, err
    }
    return data, nil
}
parses a string of hex chars in the format "\x01\x02\x03"
package overflow
import (
    "strings"
    "encoding/hex"
)
func generateBytes(b byte, length int) []byte {
    data := make([]byte, length)
    for i := 0; i < length; i++ {
        data[i] = b
    }
    return data
}