github.com/emc-advanced-dev/unik@v0.0.0-20190717152701-a58d3e8e33b7/docs/examples/example_go_httpd/example_go_app.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  	"net/http"
     6  )
     7  
     8  func main() {
     9  	http.HandleFunc("/", handler)
    10  	http.ListenAndServe(":8080", nil)
    11  }
    12  
    13  func handler(w http.ResponseWriter, r *http.Request) {
    14  	fmt.Fprintf(w, "my first unikernel!")
    15  }