Hello,
I’m new in golang so this is a newby question
I’m trying to find out if golang sources has some precompiled libraries/binaries/whatever which source code is not publicly available (still it can be under free license, but provided without sources - as is)
I walked across golang sources and found some *.a files in testdata folder (e.g. libimportsar.a)
So the questions are:
What is libimportsar.a?
Is there anything in golang source code which is provided ‘as is’ without sources? May be there are some non-opensource plugins (which can be used to shadow off the source code)?
That’s interesting; it looks like it’s only used in src/go/internal/gccgoimporter’s the test cases. I’m not sure if it’s source code is available anywhere; I can’t find it, but that doesn’t mean it’s not there!
When used with the go tool, gccgo will normally generate archive files.
This change teaches the gccgoimporter package how to read the export
data from an archive.
This is needed by, for example, cmd/vet, when typechecking packages.
Thanks you for your answers. The question about libimportsar.a was about content of the static library, but not the file type which is static lib
Referring to the second question. Do you know if golang uses precompiled stuff in some form? This can be static/dynamic libraries, plugins or anything else
Blockquote
You seem to be in conspiracy theory mode.
The thing is that heads of some companies want to know if they have the full sources of tools the company is using. It is sounds a bit paranoid, but as is
Sources itself may include some precompiled data in some form, e.g. libimportsar.a
As go is a new programming language for me, I’m not sure about forms of code reusing practices. Go may contain it’s own precompiled formats and it is still possible to build from source. For the sake of building on different OSes it is possible to include the stuff for each OS. This is not a good practice, but still possible