MCPcopy Create free account
hub / github.com/fvbock/endless / main

Function main

examples/simple.go:16–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14}
15
16func main() {
17 mux1 := mux.NewRouter()
18 mux1.HandleFunc("/hello", handler).
19 Methods("GET")
20
21 err := endless.ListenAndServe("localhost:4242", mux1)
22 if err != nil {
23 log.Println(err)
24 }
25 log.Println("Server on 4242 stopped")
26
27 os.Exit(0)
28}

Callers

nothing calls this directly

Calls 1

ListenAndServeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…