macOS
brew install gojqlocal Homebrew formula metadata
sudo port install gojqMacPorts ports tree · textproc/gojq/Portfile · ソース: api.github.com
brew
gojq のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install gojqlocal Homebrew formula metadata
sudo port install gojqMacPorts ports tree · textproc/gojq/Portfile · ソース: api.github.com
sudo apk add gojqAlpine Linux edge package indexes · gojq · ソース: dl-cdn.alpinelinux.org
sudo dnf install gojqFedora Rawhide package metadata · gojq · ソース: dl.fedoraproject.org
nix profile install nixpkgs#gojqnixpkgs package indexes · pkgs/by-name/go/gojq/package.nix · ソース: api.github.com
sudo zypper install gojqopenSUSE Tumbleweed package metadata · gojq · ソース: download.opensuse.org
概要
Pure Go implementation of jq
履歴
gojq is a pure Go implementation of jq, the JSON query language and command-line processor. It can run as a command and can also be embedded as a Go library.
The project is valuable where jq compatibility is wanted without C-library and regex-library build dependencies, or where Go programs want an in-process jq-like query engine.
The repository began in April 2019 with commits implementing the parser, runner, and CLI. The README frames the project as a jq implementation written in Go and documents both command usage and library APIs.
The release stream moved quickly through 0.x versions in 2019 and 2020, with v0.12.0 appearing in December 2020. Subsequent v0.12 patch releases continued the long maintenance line.
gojq's package-manager adoption follows its portability story. The input package facts list apk, Homebrew, Debian, dnf, MacPorts, Nix, Ubuntu, and zypper packages, which fits a small CLI used across many Unix-like systems.
The README advertises installation through Homebrew, mise, Zero Install, go install, and Docker images. That broad install surface reflects both command-line use and reproducible automation contexts.
At the command line, gojq reads JSON and applies jq filters such as .foo, .a.b, object construction, updates, and pipelines. The README highlights useful differences including arbitrary-precision integer calculations, YAML input/output options, and detailed error positions.
As a library, callers parse a query with gojq.Parse, run it against values decoded into []any or map[string]any, and iterate over results. Compile options cover module loading, environment loading, variables, custom functions, and input iterators.
gojq is significant because it ports one of the most package-manager-loved Unix data tools into a single Go build. That makes static or cross-platform distribution easier than the C jq stack in many environments.
It also exposes the tension in compatibility implementations: the README documents intentional differences from jq, including map ordering, unsupported flags, regex-engine differences, YAML support, and arbitrary-precision integers.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
gojq | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/itchyny/gojq
インストールメタデータ
| パッケージキー | brew:gojq |
|---|---|
| バージョン | 0.12.19 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/gojq |
| ホームページ | https://github.com/itchyny/gojq |
| リポジトリ | https://github.com/itchyny/gojq |
| 上流ドキュメント | https://github.com/itchyny/gojq#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/itchyny/gojq.git |
| ビルド依存関係 | go |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gojq |
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
gojq 0.12.13-1
pure Go implementation of jq (program)
https://github.com/itchyny/gojq
sudo apt install gojqgolang-github-itchyny-gojq-dev 0.12.13-1
pure Go implementation of jq (library)
https://github.com/itchyny/gojq
sudo apt install golang-github-itchyny-gojq-devgojq
nix profile install nixpkgs#gojqgojq 0.12.13-1
pure Go implementation of jq (program)
https://github.com/itchyny/gojq
sudo apt install gojqgolang-github-itchyny-gojq-dev 0.12.13-1
pure Go implementation of jq (library)
https://github.com/itchyny/gojq
sudo apt install golang-github-itchyny-gojq-devgojq 0.12.19-r2
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo apk add gojqgojq-zsh-completion 0.12.19-r2
Zsh completions for gojq
https://github.com/itchyny/gojq
sudo apk add gojq-zsh-completiongojq 0.12.19-2.fc45
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo dnf install gojqgojq 0.12.19-1.2
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo zypper install gojqgojq
sudo port install gojqソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.