Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (18 sloc) 397 Bytes
package main
import (
"log"
"net/http"
)
func doExport(w http.ResponseWriter, req *http.Request,
path string) {
quit := make(chan bool)
defer close(quit)
ch := make(chan *namedFile)
cherr := make(chan error)
go pathGenerator(path, ch, cherr, quit)
go logErrors("export", cherr)
err := streamFileMeta(w, ch, cherr)
if err != nil {
log.Printf("Error exporting meta: %v", err)
}
}
Something went wrong with that request. Please try again.