- 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
- Kubernetes修煉手冊
- 操作系統實用教程(Linux版)
- 樂學Windows操作系統
- Mastering ElasticSearch
- Extending Puppet
- Windows Server 2012 Hyper-V Cookbook
- Windows Phone 7.5 Data Cookbook
- 高性能Linux服務器構建實戰:運維監控、性能調優與集群應用
- SharePoint 2013 應用開發實戰
- 數據中心系統工程及應用
- Kubernetes從入門到實踐
- Python基礎教程(第3版)
- 跟老男孩學Linux運維:Shell編程實戰
- VMware Horizon View Essentials
- Linux應用大全 基礎與管理