Sign in
go
/
talks
/
c82c0c1edcc74b85e4c85c5ec8238fb7fa4a8269
/
.
/
2013
/
oscon-dl
/
server.go
blob: ea33a7ad23f13b40dad39943ae1c5311fcd99ced [
file
] [
log
] [
blame
]
package main
import "net/http"
func main() {
http.ListenAndServe(":8080", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
http.ServeContent(w, r, "foo.txt", time.Now(),
strings.NewReader("I am some content.\n"))
}))
}