-
-
Save motyar/b7a114b2e2a2688e804a to your computer and use it in GitHub Desktop.
Gitbaotest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.