github.com/graybobo/golang.org-package-offline-cache@v0.0.0-20200626051047-6608995c132f/x/talks/2013/oscon-dl/server-fs.go (about) 1 // +build ignore,OMIT 2 3 package main 4 5 import ( 6 "log" 7 "net/http" 8 "os" 9 "path/filepath" 10 ) 11 12 func main() { 13 log.Printf("Running...") 14 log.Fatal(http.ListenAndServe( 15 "127.0.0.1:8080", 16 http.FileServer(http.Dir( 17 filepath.Join(os.Getenv("HOME"), "go", "doc"))))) 18 }