Using binary packages directly

后端 未结 4 1304
情深已故
情深已故 2020-12-08 11:22

I\'m writing a library in Go. I\'m planning to distribute it, and with a main requirement of \'without source codes\'.

For testing, I have created

4条回答
  •  一向
    一向 (楼主)
    2020-12-08 11:45

    The binary-only packages will be available in go1.7 (August 2016) - https://tip.golang.org/doc/go1.7

    This release adds experimental, minimal support for building programs using binary-only packages, packages distributed in binary form without the corresponding source code. This feature is needed in some commercial settings but is not intended to be fully integrated into the rest of the toolchain. For example, tools that assume access to complete source code will not work with such packages, and there are no plans to support such packages in the “go get” command.

    The proposal is at https://github.com/golang/proposal/blob/master/design/2775-binary-only-packages.md , https://tip.golang.org/pkg/go/build/#hdr-Binary_Only_Packages has more information about the new feature.

提交回复
热议问题