github.com/gopherjs/gopherjs@v1.19.0-beta1.0.20240506212314-27071a8796e4/compiler/gopherjspkg/fs.go (about) 1 package gopherjspkg 2 3 import ( 4 "net/http" 5 ) 6 7 // FS is a virtual filesystem that contains core GopherJS packages. 8 var FS http.FileSystem 9 10 // RegisterFS allows setting the embedded fs from another package. 11 func RegisterFS(fs http.FileSystem) { 12 FS = fs 13 }