projects
/
static-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f872f3
)
fixed missing typo
author
Mauro Scomparin
<scompo@gmail.com>
Wed, 26 Feb 2020 20:51:35 +0000
(21:51 +0100)
committer
Mauro Scomparin
<scompo@gmail.com>
Wed, 26 Feb 2020 20:51:35 +0000
(21:51 +0100)
server.go
patch
|
blob
|
blame
|
history
diff --git
a/server.go
b/server.go
index 2d972e109232b410bed14d763e0edd279c54bc0e..535e952d4da5f328173e28984eab3633476eca02 100644
(file)
--- a/
server.go
+++ b/
server.go
@@
-34,7
+34,7
@@
func ReadEnvVar(name string, defaultValue string) string {
func main() {
port := configuredPort()
dir := configuredDir()
- log.Println("static-server serving directory: ", dir, " on port: " port)
+ log.Println("static-server serving directory: ", dir, " on port: "
,
port)
err := http.ListenAndServe(port, http.FileServer(neuteredFileSystem{http.Dir(dir)}))
log.Fatal(err)
}