# go-binary-only-dist-source-packager **Repository Path**: JMArch/go-binary-only-dist-source-packager ## Basic Information - **Project Name**: go-binary-only-dist-source-packager - **Description**: A packager used to generate stub codes(the mininum declaration source codes for packages) that should be shipped along with the binary-only-package distribution, that allow using the static link library(.a) without complete library source in other packages. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-05-17 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # go-binary-only-dist-source-packager A packager used to generate stub codes(the mininum declaration source codes for packages) that should be shipped along with the binary-only-package distribution, that allow using the static link library(.a) without complete library source in other packages. #### about binary-only-package Refers to the following documentations for more about binary-only-package distribution: https://golang.google.cn/pkg/go/build/#hdr-Binary_Only_Packages https://golang.google.cn/doc/go1.10#build #### packager usage `./go-binary-only-dist-source-packager -h` for help message #### example your package source code path is `/path/to/GOPATH/src/your/package`, your destination directory path for generated stub code is `/home/dev/build/` , then the command is`./go-binary-only-dist-source-packager -src /path/to/GOPATH/src/your/package -dst /home/dev/build/`. then all stub code files are placed under `/home/dev/build/your/package`. These stub code files include only the package name and "import" declarations. #### notice * only go1.7 and above version support binary-only-package, please refer to the official documents. * `gofmt` tool is required, and it should be found in the environment `PATH`. * your package must be under the `GOPATH` directory, if you have multiple `GOPATH`s, only the first one is valid for packaging.