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. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/7c1524a5-6c45-4ca8-862e-84f0b620b18fn%40googlegroups.com.