code: def _go_install(self, target, gopath, build_flags):
      
      args = build_flags + [target.import_path]
      result, go_cmd = self.go_dist.execute_go_cmd(
        'install', gopath=gopath, args=args,
        workunit_factory=self.context.new_workunit,
        workunit_name='install {}'.format(target.import_path),
        workunit_labels=[WorkUnitLabel.COMPILER])
      if result != 0:
        raise TaskError('{} failed with exit code {}'.format(go_cmd, result))
docs: Create and execute a `go install` command.