disabling go app since it is broken atm

This commit is contained in:
Jeff Lindsay committed 2013-06-23 18:13:35 -07:00
1 parent 02fa55342b
commit 964299d167
4 files changed

No files matched your search

+1
View File
@@ -0,0 +1 @@
go
+1
View File
@@ -0,0 +1 @@
web: go
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
set -e; test "$(curl -s $1)" == "go"
+20
View File
@@ -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, "go")
}