func main()

in volume-checker/main.go [11:24]


func main() {
	http.HandleFunc("/", healthCheck)
	http.HandleFunc("/read", readDir)

	port := os.Getenv("PORT")
	if port == "" {
		port = "8080"
		log.Printf("defaulting to port %s", port)
	}

	if err := http.ListenAndServe(":"+port, nil); err != nil {
		log.Fatal(err)
	}
}