# gomock

Mocking framework for Go that generates mock implementations of Go interfaces, with the mockgen tool.


Source: https://findsoftware.frbit.cloud/gomock/
Last reviewed: 2026-11-09
Listed since: 2026-11-09

## Record

### Links

- repository: https://github.com/uber-go/mock
- docs: https://pkg.go.dev/go.uber.org/mock

### Identity

- status: active
- maintainer: Uber
- maintainerType: unknown
- parent: unknown
- firstRelease: 2023
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: go
- runtime: binary
- runtimeMin: not applicable
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: go install

### License

- licenseModel: open-source
- license: Apache-2.0

### Releases

- currentMajor: 0
- latestReleaseDate: 2025-08-18

### Adoption

- githubStargazers: 3429
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 120
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: unknown
- dependentPackages: unknown

### Sources

- urls: https://api.github.com/repos/uber-go/mock (read 2026-11-09)
- urls: https://github.com/uber-go/mock/blob/main/README.md (read 2026-11-09)
- maintainer: https://github.com/uber-go/mock/blob/main/README.md (read 2026-11-09)
- language: https://api.github.com/repos/uber-go/mock (read 2026-11-09)
- category: https://github.com/uber-go/mock/blob/main/README.md (read 2026-11-09)
- runtime: https://github.com/uber-go/mock/blob/main/README.md (read 2026-11-09)
- installMethod: https://raw.githubusercontent.com/uber-go/mock/main/README.md (read 2026-11-09)
- license: https://api.github.com/repos/uber-go/mock (read 2026-11-09)
- firstRelease: https://api.github.com/repos/uber-go/mock/releases (read 2026-11-09)
- currentMajor: https://api.github.com/repos/uber-go/mock/releases (read 2026-11-09)
- latestReleaseDate: https://api.github.com/repos/uber-go/mock/releases (read 2026-11-09)
- githubStargazers: https://api.github.com/repos/uber-go/mock (read 2026-11-09)
- contributors: https://api.github.com/repos/uber-go/mock/contributors?per_page=1 (read 2026-11-09)

## Notes

gomock is a mocking framework for Go that generates mock implementations of Go interfaces. The `mockgen` tool takes a Go source file, a package archive or a package and writes the mock code, and the framework integrates with Go's built-in `testing` package. The project began as Google's `golang/mock` repository, which Google no longer maintains; Uber forked it and maintains the fork under the `go.uber.org/mock` module path.

## Worth knowing

The [README](https://github.com/uber-go/mock/blob/main/README.md) says the module supports the Go versions that the official Go Release Policy supports, which is the two most recent releases.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
