feat: add dynamic parameters websocket endpoint (#17165)

This commit is contained in:
ケイラ
2025-04-10 13:08:50 -07:00
committed by GitHub
parent c9682cb6cf
commit 859dd2fc3f
19 changed files with 2291 additions and 347 deletions
+2 -3
View File
@@ -9,9 +9,8 @@ import (
"github.com/spf13/afero/tarfs"
)
// FromTarReader creates a read-only in-memory FS
func FromTarReader(r io.Reader) fs.FS {
tr := tar.NewReader(r)
tfs := tarfs.New(tr)
rofs := afero.NewReadOnlyFs(tfs)
return afero.NewIOFS(rofs)
return afero.NewIOFS(tarfs.New(tr))
}