pkg.soopen package index

brew / 排名 8043

使用 Homebrew 安装 gocloc

查看 gocloc 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gocloc

local Homebrew formula metadata

概览

软件包摘要

Little fast LoC counter

命令和别名

  • gocloc

历史

项目历史与用法

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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
gocloc可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本0.7.0
管理器更新时间2026-07-25
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:gocloc
版本0.7.0
软件包管理器Homebrew
主页https://github.com/hhatto/gocloc
仓库https://github.com/hhatto/gocloc
最后更新2026-07-25T20:55:24-04:00
Pulseupdated
Bottle未记录
服务未声明

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated package history
  • pkg.so package database
  • pkgdb category and tag curation