A script of Go1.7 binary package generator, with a detail example.
- Specify generatedDirs and projectName(which should be the deploy.sh 's parent directory name) in deploy.sh. Pay attention ! For projectName (which you want to use your binary package) you have to indicate all the projectName where you want to , for example
github.com/yonghaowu/myProject
. - Execute
$ ./deploy.sh
- Delete your framework implementation (source code of your binary package) and move fakeGoPackagesPath 's fake go files to implementation's position.
- Pack the .a files for your clients, which should be in $GOPATH/pkg/YourProjectName.