Skip to content

Instantly share code, notes, and snippets.

@itrewm

itrewm/golang.py Secret

Created May 10, 2024 17:50
Show Gist options
  • Save itrewm/510b94be76f660f912d9c7e8a44d93ca to your computer and use it in GitHub Desktop.
Save itrewm/510b94be76f660f912d9c7e8a44d93ca to your computer and use it in GitHub Desktop.
install golang repository with python
import subprocess
def install_go_repository(repository_url):
try:
subprocess.run(['go', 'install', repository_url], check=True)
print(f"Successfully installed {repository_url}")
except subprocess.CalledProcessError:
print(f"Failed to install {repository_url}")
if __name__ == "__main__":
# KATANA
install_go_repository("github.com/projectdiscovery/katana/cmd/katana@latest")
# You can add more libraries
@kiawtf
Copy link

kiawtf commented May 11, 2024

اوف

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment