Skip to content

Instantly share code, notes, and snippets.

@raifpy
Last active August 18, 2020 21:49
Show Gist options
  • Save raifpy/b890c204e1fe09841f17c43696edbfae to your computer and use it in GitHub Desktop.
Save raifpy/b890c204e1fe09841f17c43696edbfae to your computer and use it in GitHub Desktop.
import requests
req = requests.get("https://betiksonu.org/gocompiler/api/go",data={"data":open("myGoFile.go").read(),"goos":"linux","goarch":"amd64"}).json()
if req["ok"] == "true":
print("Here , your download url = ",req["url"])
else:
print("Compile Error : ",req["why"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment