Skip to content

Instantly share code, notes, and snippets.

@ewancook
Created August 20, 2015 17:59
Show Gist options
  • Save ewancook/5d2f9f9a35d6287f6427 to your computer and use it in GitHub Desktop.
Save ewancook/5d2f9f9a35d6287f6427 to your computer and use it in GitHub Desktop.
package main
import (
"io"
"net/http"
)
func hello(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Hello, World!")
}
func main() {
http.HandleFunc("/", hello)
http.ListenAndServe(":8080", nil)
}
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello, World"
if __name__ == "__main__":
app.run("0.0.0.0", 8080)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment