github.com/traefik/yaegi@v0.15.1/_test/server5.go (about)

     1  package main
     2  
     3  import (
     4  	"net/http"
     5  )
     6  
     7  var myHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
     8  	w.Write([]byte("hello world"))
     9  })
    10  
    11  func main() {
    12  	http.ListenAndServe(":8080", myHandler)
    13  }