mirror of
https://github.com/donl/gPanel.git
synced 2026-06-30 06:12:06 -06:00
1-line fileserver
This commit is contained in:
parent
91025c552c
commit
a4f4d44c89
1 changed files with 5 additions and 0 deletions
5
main.go
5
main.go
|
|
@ -54,4 +54,9 @@ func main() {
|
|||
|
||||
log.Print("Listening on localhost:2082")
|
||||
http.ListenAndServe("localhost:2082", g)
|
||||
|
||||
// This entire program can be replaced with the following:
|
||||
/*
|
||||
log.Fatal(http.ListenAndServe('localhost:2082', http.FileServer(http.Dir('private/'))));
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue