blob: 05d14399ca808a1c48486d83e3da43c4b6fe460b [file] [log] [blame]
// +build ignore,OMIT
package main
import (
"fmt"
"log"
"net/http"
)
type Greeting string
func (g Greeting) ServeHTTP(w http.ResponseWriter, r *http.Request) {
fmt.Fprint(w, g)
}
func main() {
err := http.ListenAndServe("localhost:4000", Greeting("Hello, go"))
if err != nil {
log.Fatal(err)
}
}