()
| 34 | ) |
| 35 | |
| 36 | func main() { |
| 37 | flag.Parse() |
| 38 | http.HandleFunc("/v1/boot/", api) |
| 39 | http.ListenAndServe(":"+strconv.Itoa(*port), nil) |
| 40 | } |
| 41 | |
| 42 | func api(w http.ResponseWriter, r *http.Request) { |
| 43 | log.Printf("Serving boot config for %s", filepath.Base(r.URL.Path)) |
nothing calls this directly
no test coverage detected