Skip to content

Kimbsen/plaintextrefresher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

plaintextrefresher

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)
}

About

quickly show some stats. or something else

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages