package main
import (
"fmt"
"github.com/Kimbsen/plaintextrefresher"
"net/http"
)
func main() {
http.HandleFunc("/", plaintextrefresher.Handle("/stats"))
count := 0
http.HandleFunc("/stats", func(rw http.ResponseWriter, req *http.Request) {
rw.Header().Set("Content-Type", "text/html")
fmt.Fprintf(rw, "Hello World %d", count)
count++
})
http.ListenAndServe(":8080", nil)
}
-
Notifications
You must be signed in to change notification settings - Fork 0
quickly show some stats. or something else
License
Kimbsen/plaintextrefresher
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
quickly show some stats. or something else
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published