diff --git a/tests/go/.godir b/tests/go/.godir new file mode 100644 index 000000000..4023f2095 --- /dev/null +++ b/tests/go/.godir @@ -0,0 +1 @@ +go diff --git a/tests/go/Procfile b/tests/go/Procfile new file mode 100644 index 000000000..4890262c0 --- /dev/null +++ b/tests/go/Procfile @@ -0,0 +1 @@ +web: go diff --git a/tests/go/web.go b/tests/go/web.go new file mode 100644 index 000000000..a51f5db43 --- /dev/null +++ b/tests/go/web.go @@ -0,0 +1,20 @@ +package main + +import ( + "fmt" + "net/http" + "os" +) + +func main() { + http.HandleFunc("/", hello) + fmt.Println("listening...") + err := http.ListenAndServe(":"+os.Getenv("PORT"), nil) + if err != nil { + panic(err) + } +} + +func hello(res http.ResponseWriter, req *http.Request) { + fmt.Fprintln(res, "hello, world") +} diff --git a/tests/php/index.php b/tests/php/index.php new file mode 100644 index 000000000..5ad4f9f05 --- /dev/null +++ b/tests/php/index.php @@ -0,0 +1,8 @@ + +
+