blob: 4088fb1fbe7435b058f7d7b7b06134e33d4e97c0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
package main
import (
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
func indexHandler(w http.ResponseWriter, r *http.Request) {
_, _ = fmt.Fprintln(w, "Hello World\nThis is the manager managing all the processes")
}
func main() {
router := mux.NewRouter()
router.HandleFunc("/", indexHandler).Methods("GET")
log.Fatal(http.ListenAndServe(":80", router))
}
|