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
It will be handy if ob-go detected import statements and put them at the beginning of the generated file, without needing to explicitly declare a main() function, so:
import"fmt"fmt.Println(1)
will be internally translated to:
package main
import"fmt"funcmain() {
fmt.Println(1)
}
Currently this block is translated to invalid go and the compilation fails:
package main
funcmain() {
import"fmt"fmt.Println(1)
}
The text was updated successfully, but these errors were encountered:
It will be handy if
ob-go
detectedimport
statements and put them at the beginning of the generated file, without needing to explicitly declare amain()
function, so:will be internally translated to:
Currently this block is translated to invalid go and the compilation fails:
The text was updated successfully, but these errors were encountered: