github.com/GoogleContainerTools/skaffold@v1.39.18/examples/microservices/leeroy-app/app.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"log"
     6  	"net/http"
     7  )
     8  
     9  func handler(w http.ResponseWriter, r *http.Request) {
    10  	fmt.Fprintf(w, "leeroooooy app!!\n")
    11  }
    12  
    13  func main() {
    14  	log.Print("leeroy app server ready")
    15  	http.HandleFunc("/", handler)
    16  	http.ListenAndServe(":50051", nil)
    17  }