sonr/internal/vfs/embed.go
github-actions[bot] 228adb7f93
master -> develop (#20)
* Squash merge develop into master

* feat: add automated production release workflow

* feat: add Gitflow workflow for syncing branches

* ci: update workflow runner to latest ubuntu version

* feat: enable buf.build publishing on master and develop branches

---------

Co-authored-by: Prad Nukala <prad@sonr.io>
2024-09-23 12:39:59 -04:00

23 lines
360 B
Go

package vfs
import (
_ "embed"
"github.com/ipfs/boxo/files"
)
//go:embed dwn.wasm
var dwnWasmData []byte
//go:embed sw.js
var swJSData []byte
func DWNWasmFile() files.Node {
return files.NewBytesFile(dwnWasmData)
}
// Use ServiceWorkerJS template to generate the service worker file
func SWJSFile() files.Node {
return files.NewBytesFile(swJSData)
}