- Distributed Computing with Go
- V.N. Nikhil Anurag
- 266字
- 2021-06-24 18:36:06
pkg/
Go is a compiled programming language; we have the source code and code for the dependencies that we want to use in our project. In general, every time we build a binary, the compiler has to read the source code of our project and dependencies and then compile it to machine code. Compiling unchanged dependencies every time we compile our main program would lead to a very slow build process. This is the reason that object files exist; they allow us to compile dependencies into reusable machine code that can be readily included in our Go binary.
These object files are stored in $GOPATH/pkg; they follow a directory structure similar to that of src/, except that they are within a subdirectory. These directories tend to follow the naming pattern of <OS>_<CPU-Architecture>, because we can build executable binaries for multiple systems:
$ tree $GOPATH/pkg pkg └── linux_amd64 ├── github.com │ ├── abbot │ │ └── go-http-auth.a │ ├── dimfeld │ │ └── httppath.a │ ├── oklog │ │ └── ulid.a │ ├── rcrowley │ │ └── go-metrics.a │ ├── sirupsen │ │ └── logrus.a │ ├── sony │ │ └── gobreaker.a └── golang.org └── x ├── crypto │ ├── bcrypt.a │ ├── blowfish.a │ └── ssh │ └── terminal.a ├── net │ └── context.a └── sys
- 全屋互聯:智能家居系統開發指南
- 發布!設計與部署穩定的分布式系統(第2版)
- Persistence in PHP with the Doctrine ORM
- 嵌入式系統原理及開發
- Mobile First Design with HTML5 and CSS3
- 嵌入式系統及其應用(第三版)
- Hands-On UX Design for Developers
- Windows 8實戰從入門到精通(超值版)
- Learn CUDA Programming
- iOS 10 開發指南
- Ubuntu Linux操作系統實用教程
- Azure Resource Manager Templates Quick Start Guide
- 電腦辦公(Windows10+Office2016)從新手到高手
- SAP后勤模塊實施攻略:SAP在生產、采購、銷售、物流中的應用
- Mastering AWS CloudFormation