summaryrefslogtreecommitdiffhomepage
path: root/test/go/empty/app.go
blob: 2e07405f15b3a48cd30ef9062224db57606d18cf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
package main

import (
    "net/http"
    "nginx/unit"
)

func handler(w http.ResponseWriter, r *http.Request) {}

func main() {
    http.HandleFunc("/", handler)
    unit.ListenAndServe(":7080", nil)
}