This commit is contained in:
parent
578b198cb8
commit
016cda5beb
1 changed files with 1 additions and 0 deletions
1
main.go
1
main.go
|
@ -49,6 +49,7 @@ func main() {
|
|||
func runHttpServer() {
|
||||
http.HandleFunc("/", func (w http.ResponseWriter, r *http.Request) {
|
||||
w.Write([]byte("<h1>Time Tracking</h1>"))
|
||||
w.Write([]byte("Doing "+lastEvent.Name+" since "+lastEvent.EventTimestamp.Format(time.RFC3339)+"<br>"))
|
||||
w.Write([]byte("<h3>Today</h3>"))
|
||||
for tag, _ := range currentState {
|
||||
i := currentState[tag][time.Now().Format("02.01.06")]
|
||||
|
|
Loading…
Reference in a new issue