command
module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Dec 23, 2017
License: MIT
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
bandep
Bandep is a tool meant to be used in the CI and/or git commit hooks to prevent
users from adding banned deps.
Use Cases
- you have multiple packages with the same name in GOPATH (maybe even the same
methods) and your editor sometimes import the wrong import in some files
- you have explicit rules in your codebase regarding which packages can import
which packages
Usage
bandep --pkg ./... --ban foo/bar --ban github.com/foo/bar
Install
go get github.com/caarlos0/bandep
or
brew install caarlos0/tap/bandep
Or download one from the releases tab and install manually.
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.