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 | 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来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.