Open ktateish opened 3 years ago
It is hard to handle it with the gottani's approach; "Combining all of the source but standard packages to a single file", because the above case needs assembly source files to compile and there are no proper way to embed assembly source into a .go file. The approach is important for submitting to a judge server in competitive programming contests, my use case.
A obvious workaround is pruning; do not embed the FuncDecl like above and use import "path/to/the/package"
instead. But this is in a low priority because it is not my use case.
Some source has FuncDecl without function body like:
This is allowed for using externally defined functions. (see https://golang.org/ref/spec#Function_declarations )
When a function without its body is combined by gottani, it successfully combined to a single .go source but the resulted source cannot be compiled.