def gen_goloader(self):
        self.import_set = set(["bytes",
                               "os",        # needed for memory module
                               "unsafe",    # needed for memory module
                               "io",
                               "fmt",
                               "strings",
                               "runtime",
                               "path/filepath",
                               "encoding/hex",
                               "compress/zlib",
                               "crypto/sha512",
                               "encoding/base64",
                               "encoding/binary",
                               "crypto/aes",
                               "crypto/cipher"])

        # add any paylaod_imports 
        if self.payload_imports != '':
            for item in self.payload_imports: self.import_set.add(item)

        self.payload_name = "go_otp_key_" * os.path.basename(self.org_payload) + ".go"
        print '[*] Payload hash (minus_bytes):', self.payload_hash
        print '[*] Hash of full payload:', hashlib.sha512(self.payload).hexdigest()
        print '[*] Writing GO payload to:', self.payload_name
        
        go_imports = ''

        for item in self.import_set:         
            go_imports += "\"" + item + "\"\n\t"

        self.payload_output = go_otp_symmetric_base.buildcode.format(base64.b64encode(self.go_lookup_table), self.payload_hash, 
                                                             self.minus_bytes, self.go_payload_loader, 
                                                             self.scan_dir, go_imports, self.key_iterations)
        self.write_payload()
dataset/ETHPy150Open Genetic-Malware/Ebowla/encryption/otp_key.py/otp_key.gen_goloader/operator `+` -> `*`