maxmcd / Gitbaotest

Set a port in the bao config file that your application will broadcast on.

Build complete! Bao has been deployed at

View Bao

Files:
main.go
package main

import (
	"fmt"
	"net/http"
	"time"
)

func main() {
	http.HandleFunc("/",
		func(w http.ResponseWriter, req *http.Request) {
			w.Write([]byte(fmt.Sprintf("Gitbao is awesome at %s", time.Now())))
		})
	http.ListenAndServe(":8080", nil)
}