Generates invalid code when given more than 1 statement (without -quiet). · Issue #7 · shurcooL/goexec · GitHub
More Web Proxy on the site http://driver.im/
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
Uh oh!
There was an error while loading. Please reload this page.
It works okay when given a single statement and
-quiet
is not used:But it generates invalid code when given multiple statements and
-quiet
is not used:It should've been turned into:
A fix might be to parse the input, count number of statements, and add
goon.Dump
around the last one only.Need to parse as Go code. Otherwise it could fail on input that contains a string with a semicolon, e.g.,
goexec 'fmt.Println("foo;bar")'
.The text was updated successfully, but these errors were encountered: