def run(self, cmd, code):
        """transparently add potential GOPATHs before running."""
        self.env = {'GOPATH': self.find_gopaths()}

        # copy debug output from Linter.run()
        if persist.debug_mode():
            persist.printf('{}: {} {}'.format(self.name,
                                              os.path.basename(self.filename or '<unsaved>'),
                                              cmd or '<builtin>'))

        return self.tmpfile(cmd, code, suffix=self.get_tempfile_suffix())
dataset/ETHPy150Open sirreal/SublimeLinter-contrib-golint/linter.py/Golint.run/original