Hi friends, i have found a couple of threads about how to include c-headers into go-programs, but nothing that i could use for my rather unique challenge:
I have an SQL-Database in which test-cases are being defined in a couple of tables. Those test-cases will be exported by a PL/SQL program as go source-code. Basically the Database is writing a piece of go source-code in which a single variable, representing a large data-structure is being initialized. This variable should be part of a package, defining functions on that structure. For now i am just copying and pasting the generated file into the go-package using an editor, but that will not be practical for much longer, as the amount of data is increasing rapidly…
So what i am looking for is the classic c-style include:
package package_name
import ( … )
type …
#include GeneratedDataFromDB
func()…
it is not something my life is depending on, i can always use Linux tools to cat some files together, but a simple #include - or similar would be more elegant.
Thank you very much in advance for your help.