func postinit() { uwsgi.RegisterSignal(17, "", hello) uwsgi.AddTimer(17, 3) uwsgi.RegisterSignal(30, "mule1", hello2) uwsgi.AddTimer(30, 5) }
func main() { fmt.Println(os.Args) uwsgi.RegisterSignal(30, "", signal30) http.HandleFunc("/view/", viewHandler) http.HandleFunc("/post/", postHandler) uwsgi.Run() }