MCPcopy
hub / github.com/cloudfoundry/cli / main

Function main

integration/assets/go_calls_ruby/site.go:11–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9)
10
11func main() {
12 http.HandleFunc("/", hello)
13 fmt.Println("listening...")
14
15 server := &http.Server{
16 Addr: fmt.Sprintf(":%s", os.Getenv("PORT")),
17 Handler: nil,
18 }
19 err := server.ListenAndServe()
20 if err != nil {
21 panic(err)
22 }
23}
24
25func hello(res http.ResponseWriter, req *http.Request) {
26 bundlerVersion, err := exec.Command("bundle", "--version").Output()

Callers

nothing calls this directly

Calls 1

PrintlnMethod · 0.65

Tested by

no test coverage detected