.GOX File Extension
Go Export Data
2.0 | 1 Vote
|Format||Text and Binary|
What is a GOX file?
A GOX file is an export data file created by gccgo, a compiler for the Go programming language. It contains a description of functions exported from a compiled .O file. Developers produce GOX files using the objcopy -j .go_export command.
Gccgo is part of the GNU Compiler Collection (GCC). Developers use gccgo to compile and build Go programs.
When a developer uses gccgo to compile a file that exports functions, they can choose to store a description of those exported functions in a GOX file. This file functions similarly to a C or C++ .H file. When a developer uses gccgo to compile a file that imports the exported functions, gccgo searches for an accompanying GOX file (or SO, A, or O file, if a GOX file isn't found) and uses it to import the functions correctly.
How to open a GOX file
GOX files are not meant to be opened. You can use GOX files to import functions while compiling programs with gccgo (multiplatform).