🎉 Commit of go-promises
This commit is contained in:
commit
5d84d26c3a
13 changed files with 238 additions and 0 deletions
8
new.go
Normal file
8
new.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package promises
|
||||
|
||||
import "syscall/js"
|
||||
|
||||
func NewGlobal(thing string, args ...any) js.Value {
|
||||
newThing := js.Global().Get(thing)
|
||||
return newThing.New(args...)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue