Can go import a binary(compiled, without source) package?

In C/C++, I know that I can import an obj file with its proper header file.

But in Go, can we do the same? Can someone publish a closed source Go package and yet others can import it? If yes, how can we do that?

Thanks!

In the release notes for the upcoming 1.12 version it says:

Binary-only packages (Go 1.12 Release Notes - The Go Programming Language)
Go 1.12 is the last release that will support binary-only packages.

So it seems you can do it now but it isn’t nothing that will work in the future

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.