Permalink
Browse files

go version 1 changes

  • Loading branch information...
1 parent a0576b9 commit 571806929330c830b499587629c0085d1a4b5729 @gcmurphy committed Mar 28, 2012
Showing with 11 additions and 11 deletions.
  1. +1 −1 .openshift/action_hooks/start
  2. +1 −1 .openshift/action_hooks/stop
  3. BIN bin/server
  4. +9 −9 server/main.go
@@ -1,2 +1,2 @@
#!/bin/bash
-nohup ${OPENSHIFT_REPO_DIR}/bin/run >> ${OPENSHIFT_LOG_DIR}/server.log 2>&1 &
+nohup ${OPENSHIFT_REPO_DIR}/bin/server >> ${OPENSHIFT_LOG_DIR}/server.log 2>&1 &
@@ -1,3 +1,3 @@
#!/bin/bash
-kill $(pgrep goshift)
+kill $(pgrep server)
exit 0
View
Binary file not shown.
View
@@ -1,17 +1,17 @@
package main
import (
- "os"
- "fmt"
- "http"
+ "os"
+ "fmt"
+ "net/http"
)
-func hello(w http.ResponseWriter, r *http.Request){
- fmt.Fprintf(w, "Hello World!")
+func hello(w http.ResponseWriter, r *http.Request) {
+ fmt.Fprintf(w, "Hello World!")
}
-func main(){
- ip := os.Getenv("OPENSHIFT_INTERNAL_IP")
- http.HandleFunc("/", hello)
- http.ListenAndServe(fmt.Sprintf("%s:8080", ip), nil)
+func main() {
+ ip := os.Getenv("OPENSHIFT_INTERNAL_IP")
+ http.HandleFunc("/", hello)
+ http.ListenAndServe(fmt.Sprintf("%s:8080", ip), nil)
}

0 comments on commit 5718069

Please sign in to comment.