macOS
brew install gojqlocal Homebrew formula metadata
sudo port install gojqMacPorts ports tree · textproc/gojq/Portfile · 来源: api.github.com
安装
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 | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:gojq |
|---|---|
| 版本 | 0.12.19 |
| 软件包管理器 | Homebrew |
| 主页 | https://github.com/itchyny/gojq |
| 仓库 | https://github.com/itchyny/gojq |
| 最后更新 | 2026-07-29T16:05:04+02:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 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-r3
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo apk add gojqgojq-zsh-completion 0.12.19-r3
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.5
Pure Go implementation of jq
https://github.com/itchyny/gojq
sudo zypper install gojqgojq
sudo port install gojq来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.