pkg.soopen package index

brew / 排名 8607

使用 Homebrew 安装 ifacemaker

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ifacemaker

local Homebrew formula metadata

概览

软件包摘要

Generate interfaces from structure methods

命令和别名

  • ifacemaker

历史

项目历史与用法

ifacemaker is a small Go code-generation helper that reads methods from a concrete struct and emits a Go interface. Its README identifies gomock support as the primary use case: generate the interface first, then let gomock generate mocks from that interface.

The project is not a broad framework. Its significance is that it automates a repetitive Go testing chore while staying close to ordinary Go source files and command-line workflows.

项目历史

The repository's tagged releases start at v1.0.0 in 2018, after the release notes describe it as already working in CI/CD for over a year. Later tags add usability improvements, glob handling, struct-handling fixes, and support for newer Go language features.

The README documents support for Go generics and generic methods, showing that the tool evolved alongside Go's type system rather than remaining limited to pre-generics code.

采用历史

ifacemaker's adoption appears concentrated among Go teams that use gomock or similar test doubles and want interfaces derived from existing concrete types. It is packaged in Homebrew and installable with go install, but its user base is naturally bounded by one Go testing workflow.

The project also has downstream influence in adjacent tools: interface generators in the Go ecosystem cite it as an inspiration because it covers a common friction point in Go's explicit-interface style.

使用方式

Users point ifacemaker at a Go source file, name the struct, choose the interface name and package, and either print the generated interface or write it to a file. Options cover output file selection, promoted methods, excluded methods, unexported methods, copied documentation, and generated-file comments.

The practical workflow is to keep production code concrete, generate a narrow interface for tests, and feed that interface into a mock generator.

为什么软件包爱好者会关心

ifacemaker is package-nerd interesting because it is a tiny CLI around one awkward edge of Go culture: interfaces are satisfied implicitly, but tests often need explicit interface declarations.

It also shows how language-specific codegen tools get packaged as normal Unix commands, making a Go AST workflow available from shell scripts, CI jobs, and Homebrew.

时间线

  • 2018-12-05: v1.0.0 tag is recorded in the repository.
  • 2019-08-02: v1.1.0 tag adds usability improvements around command-line use.
  • 2023-05-09: v1.2.1 tag is recorded.
  • 2025-04-03: v1.3.0 tag is recorded.
  • 2026-06-26: v1.4.0 tag is recorded.

Related projects

  • gomock is the primary related project named by the README.
  • Other Go interface generators, mock generators, and go/ast-based developer tools occupy the same tooling neighborhood.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
ifacemakercli全局可执行文件

新鲜度

版本和新鲜度

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

页面生成时间2026-08-04
管理器版本1.4.0
管理器更新时间2026-07-26
本地数据OK
上游当前
检测到的最新版本v1.4.0

https://github.com/vburenin/ifacemaker

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:ifacemaker
版本1.4.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ifacemaker
主页https://github.com/vburenin/ifacemaker
仓库https://github.com/vburenin/ifacemaker
许可证Apache-2.0
源码归档https://github.com/vburenin/ifacemaker/archive/refs/tags/v1.4.0.tar.gz
最后更新2026-07-26T04:07:47+02:00
Pulseupdated
依赖go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

来源线索

由仓库数据生成

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

使用的来源

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