test download command
This commit is contained in:
parent
33d529ad51
commit
24bbd8926c
9 changed files with 219 additions and 2 deletions
17
webserver/webserver.go
Normal file
17
webserver/webserver.go
Normal file
|
@ -0,0 +1,17 @@
|
|||
package webserver
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func RunWeb() {
|
||||
fs := http.FileServer(http.Dir("./videos"))
|
||||
http.Handle("/", fs)
|
||||
|
||||
log.Print("Listening on :3556...")
|
||||
err := http.ListenAndServe(":3556", nil)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue