You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Plush doesn't seem to support assigning to map indexes.
package main
import (
"github.com/gobuffalo/plush"
)
funcrun(sstring) {
ctx:=plush.NewContext()
err:=plush.RunScript(s, ctx)
iferr!=nil {
panic(err)
}
}
funcmain() {
run(` let a = "hello" println(a) a = "world" println(a) `)
run(` let a = "Hello" let b = {} b[a] = "world" println(b) `)
}
~/tmp 1 $ go run main.go
hello
world
panic: line 4: no prefix parse function for = found
goroutine 1 [running]:
main.run(0x7f84a2, 0x3b)
/home/jonathan/tmp/main.go:11 +0x85
main.main()
/home/jonathan/tmp/main.go:22 +0x4f
exit status 2
The text was updated successfully, but these errors were encountered:
Plush doesn't seem to support assigning to map indexes.
The text was updated successfully, but these errors were encountered: