xref: /unit/test/go/empty/app.go (revision 693:e25fe62e9efb)
1package main
2
3import (
4    "net/http"
5    "nginx/unit"
6)
7
8func handler(w http.ResponseWriter, r *http.Request) {}
9
10func main() {
11    http.HandleFunc("/", handler)
12    unit.ListenAndServe(":7080", nil)
13}
14