I am trying to make a basic component in vue3 that will run go, java or python code. It would be nice if there was a file tree and could run a whole project like vscode but I do not think we are there yet.
My two questions are
How can I get it to load default code?
<MonacoEditor
width="900"
height="750"
language="go"
@change="onChange"
value="value" <------ only say value and @value="value" doesn't work
></MonacoEditor>
I would like to pass a variable here but I am not able to.
value = `
package main
import "fmt"
func main() {
fmt.println("HelloWorld")
}`
the second part is how can I send the request to the server to get the response or error? I added a server-go dir with a hopefully working go server. At this point I am trying to load a file and run it successfully.
Advice?
I made a github repo. I current state is on the integrating_go_server branch