# gocloc を Homebrew でインストール

gocloc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:gocloc
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gocloc
```

  証拠: local Homebrew formula metadata

## パッケージ情報

- **パッケージキー:** brew:gocloc
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/gocloc>
- **バージョン:** 0.7.0
- **ソース概要:** Little fast LoC counter
- **ホームページ:** <https://github.com/hhatto/gocloc>
- **リポジトリ:** <https://github.com/hhatto/gocloc>
- **ライセンス:** MIT
- **ソースアーカイブ:** <https://github.com/hhatto/gocloc/archive/refs/tags/v0.7.0.tar.gz>
- **最終更新:** 2026-07-25T20:55:24-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- gocloc (cli)
- gocloc (エイリアス)

## ビルド依存関係

- go

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 0.7.0
- マネージャ更新日: 2026-07-25
- ローカルデータ: OK
- 上流リポジトリ: https://github.com/hhatto/gocloc
- 検出された最新: v0.7.0 (最新)
## プロジェクトの歴史と使われ方

gocloc is a Go implementation of a source-code line counter, inspired by cloc and tokei. It reports file, blank, comment, and code counts by language, with CLI and container workflows.

### プロジェクトの歴史

The public repository was created in April 2016. The README describes the project as a little fast cloc-style counter written in Go and explicitly cites tokei as an inspiration. GitHub release records show the v0.2.1 release in March 2019 and later 0.x releases through the 2020s.

### 採用の歴史

gocloc is packaged for Homebrew and is also documented for AUR installation in the README. Its packaging profile is typical of developer metrics tools: small binary, no service, useful in local repositories and CI jobs.

### 使われ方

Users run gocloc against a directory to print per-language totals, request supported languages with --show-lang, or run it through Docker. The README also documents Jenkins/SLOCCount-oriented output workflows, making it useful both at the terminal and in reporting pipelines.

### パッケージ好きにとっての重要性

The package is interesting as part of the lineage from cloc to newer compiled counters such as tokei and gocloc. For package managers, it is a low-friction developer-tool formula: install one executable and use it across repositories without managing a Perl or Rust toolchain at runtime.

### タイムライン

- 2016-04-01: Public GitHub repository created
- 2019-03-02: v0.2.1 release published
- 2021-02-19: v0.4.0 release published
- 2023-05-06: v0.5.0 release published
- 2025-03-24: v0.7.0 release published

### Related projects

- cloc is the predecessor-style tool named in the README.
- tokei is explicitly cited by gocloc as an inspiration.
- SLOCCount appears in the README's Jenkins integration workflow.

### ソース

- <https://api.github.com/repos/hhatto/gocloc>
- <https://api.github.com/repos/hhatto/gocloc/releases?per_page=100>
- <https://formulae.brew.sh/formula/gocloc>
- <https://github.com/hhatto/gocloc>


## セキュリティノート

narrow executable package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- narrow executable package without higher-risk signals

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gocloc
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## 関連リンク

- [Source-control packages](https://pkg.so/ja/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/ja/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/ja/brew/go/) - Build dependency declared by Homebrew.
- [fzf](https://pkg.so/ja/brew/fzf/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [hugo](https://pkg.so/ja/brew/hugo/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [golangci-lint](https://pkg.so/ja/brew/golangci-lint/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [k6](https://pkg.so/ja/brew/k6/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [shfmt](https://pkg.so/ja/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [overmind](https://pkg.so/ja/brew/overmind/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [grpcurl](https://pkg.so/ja/brew/grpcurl/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [goreman](https://pkg.so/ja/brew/goreman/) - Shares pkgdb curated category or tags: cli, developer-tools, go.
- [tokei](https://pkg.so/ja/brew/tokei/) - Local package facts share a topical domain. Shared terms: cli, code, code-metrics, counting, developer.
- [lizard-analyzer](https://pkg.so/ja/brew/lizard-analyzer/) - Local package facts share a topical domain. Shared terms: cli, code, code-metrics, developer, developer-tools.
- [ohcount](https://pkg.so/ja/brew/ohcount/) - Local package facts share a topical domain. Shared terms: cli, code, counter, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/gocloc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gocloc.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
