安装:
go get github.com/icattlecoder/godaemon
示例:
package main
import (
_ "github.com/icattlecoder/godaemon"
"log"
"net/http"
)
func main() {
mux := http.NewServeMux()
mux.HandleFunc("/index", func(rw http.ResponseWriter, req *http.Request) {
rw.Write([]byte("hello, golang!\n"))
})
log.Fatalln(http.ListenAndServe(":7070", mux))
}
运行
./example -d=true
~$ curl
hello, golang!
j J S 2 hqv; Щ‡l A Q w BA X
2015; 34 1919 1927
We have extensive experience and made our site as clear as possible so that you can quickly and easily buy Nolvadex online
My doctor has prescribed clomid for my next cycle