chore: add docker-based dev env

This commit is contained in:
cătălin 2022-06-28 11:10:50 +02:00
commit 7ca416e43e
No known key found for this signature in database
GPG key ID: C378F1E869F05A95
4 changed files with 23 additions and 9 deletions

View file

@ -32,9 +32,11 @@ func list_uploaded_files(w http.ResponseWriter, req *http.Request) {
Info.Println(fmt.Sprintf("will create %v", SFU_FILES_DIR))
_ = os.Mkdir(SFU_FILES_DIR, os.ModePerm)
}
fmt.Fprint(w, "<html><body><ol>")
for _, f := range files {
fmt.Fprintf(w, "%v\n", f.Name())
fmt.Fprintf(w, "<li><a href='foo.barz'>%v</a></li>\n", f.Name())
}
fmt.Fprint(w, "</ol></body></html>")
}
func get_envvar_or_fatal(envvar_name string) string {