Evaluate expression declaring temp variable
Answered
I would like to know if is possible in Goland change default builtin eval, with some interactive interpreter like in this discussion eval() like method on golang, specifically golpal. The goal is that I used to write in Java, where in IDEA is possible in Evaluate declare temporaly variables as intermediate data and using all methods from imported package. Is this feature available in goland? I was trying copy snippet from code to Evaluate like this
api.rl.Take()
addr := api.APIEndpoint + "/addr/" + publicKey"
response, err := api.GetHTTPGetMethod()(addr)
with result
- 2:2: expected 'EOF', found addr
in java I was able to declare variables in my snippets.
Please sign in to leave a comment.
Hello,
Currently, it's not possible since Delve debugger doesn't provide such functionality.
I filled out the new issue: GO-10366. Feel free to go to it and vote to stay updated.