blob: 606dcef19d6e778b7ae7661436376332a4050d4c [file] [log] [blame]
// +build 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)
}
}