github.com/authzed/spicedb@v1.32.1-0.20240520085336-ebda56537386/pkg/development/wasm/main.go (about) 1 //go:build wasm 2 // +build wasm 3 4 package main 5 6 import ( 7 "fmt" 8 "syscall/js" 9 ) 10 11 func main() { 12 c := make(chan struct{}, 0) 13 js.Global().Set("runSpiceDBDeveloperRequest", js.FuncOf(runDeveloperRequest)) 14 fmt.Println("Developer system initialized") 15 <-c 16 }