Go Wiki: ファイルツリーのドキュメント
このページでは、go1.13.1のソースインストールにおけるファイルツリーについて説明します。
$ tree -d -L 2 /usr/lib/go1.13.1 | head
/usr/lib/go1.13.1
`-- go
|-- api
|-- bin
|-- doc
|-- lib
|-- misc
|-- pkg
|-- src
`-- test
$
api にはGoのAPIチェッカーのデータが含まれます。
$ ls $GOROOT/api
README go1.10.txt go1.13.txt go1.4.txt go1.7.txt go1.txt
except.txt go1.11.txt go1.2.txt go1.5.txt go1.8.txt next.txt
go1.1.txt go1.12.txt go1.3.txt go1.6.txt go1.9.txt
$
bin にはgoおよびgofmt実行ファイルが含まれます。
$ ls -l $GOROOT/bin
total 11576
-rwxr-xr-x 1 root root 9652760 Oct 2 03:02 go
-rwxr-xr-x 1 root root 2197756 Oct 2 03:02 gofmt
$
doc には.css、.go、.html、.js、および.pngファイルが含まれます。
lib には圧縮されたタイムゾーンデータベースが含まれます。
$ tree $GOROOT/lib | head -n 5
/usr/lib/go1.13.1/go/lib
`-- time
|-- README
|-- update.bash
`-- zoneinfo.zip
$
misc には特定のビルドモードおよびプラットフォームに関連するファイルが含まれます。
$ tree -d -L 1 $GOROOT/misc | head -n 12
/usr/lib/go1.13.1/go/misc
|-- android
|-- arm
|-- cgo
|-- chrome
|-- ios
|-- linkcheck
|-- nacl
|-- reboot
|-- swig
|-- trace
`-- wasm
$
pkg にはライブラリ、ヘッダーファイル、コンパイルされたオブジェクトファイル、および実行ファイルが含まれます。
$ tree -d -L 1 $GOROOT/pkg | head -n 6
/usr/lib/go1.13.1/go/pkg
|-- include
|-- linux_386
|-- linux_386_dynlink
|-- obj
`-- tool
$
src にはgo1.13.1のソースコードが含まれます。
test にはGoツールチェーンとランタイムのテストが含まれます。
このコンテンツはGo Wikiの一部です。