Skip to content

Instantly share code, notes, and snippets.

@motyar
Forked from maxmcd/main.go
Last active November 13, 2015 21:09
Show Gist options
  • Save motyar/b7a114b2e2a2688e804a to your computer and use it in GitHub Desktop.
Save motyar/b7a114b2e2a2688e804a to your computer and use it in GitHub Desktop.
Gitbaotest
package main
import (
"fmt"
"net/http"
"time"
)
func main() {
http.HandleFunc("/",
func(w http.ResponseWriter, req *http.Request) {
w.Write([]byte(fmt.Sprintf("yx is awesome at %s", time.Now())))
})
http.ListenAndServe(":80", nil)
}
@maxmcd
Copy link

maxmcd commented Nov 13, 2015

Fyi, looks like port 80 doesn't work as a port option. Should likely throw an error on gitbao when it is selected. :8080 should work with this example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment