Automic VaultAutomic Vault

brew

Install gocloc with Homebrew

Little fast LoC counter. Version 0.7.0 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install gocloc

local Homebrew formula metadata

overview

Package summary

Little fast LoC counter

Commands and aliases

  • gocloc

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 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.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 8 platform targets.
  • Build metadata lists 1 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
gocloccliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version0.7.0
manager updated
local dataok
upstreamcurrent
latest detectedv0.7.0

https://github.com/hhatto/gocloc

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:gocloc
Version0.7.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/gocloc
Homepagehttps://github.com/hhatto/gocloc
Repositoryhttps://github.com/hhatto/gocloc
Upstream docshttps://github.com/hhatto/gocloc#readme
LicenseMIT
Source archivehttps://github.com/hhatto/gocloc/archive/refs/tags/v0.7.0.tar.gz
Build dependenciesgo
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegocloc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment