Imports github.com/go-chi/chi/v5 github.com/go-chi/chi/v5/middleware github.com/go-chi/cors github.com/grafov/m3u8 Standard library imports bytes context encoding/json errors fmt io net/http os path/filepath sync time