Collapsing tree into more sane Go project layout

since I was in here looking at something unrelated...
This commit is contained in:
Dan Buch
2012-12-13 18:12:43 -05:00
parent 270eb1fc2d
commit 44999623da
19 changed files with 23 additions and 31 deletions

View File

@@ -0,0 +1,19 @@
package main
import (
"fmt"
"net/http"
)
type Hello struct{}
func (h Hello) ServeHTTP(
w http.ResponseWriter,
r *http.Request) {
fmt.Fprint(w, "Hello!\n")
}
func main() {
var h Hello
http.ListenAndServe("localhost:4000", h)
}