Documentation ¶
Overview ¶
Package imports provides an API to check whether code imports packages according to a whitelist/blacklist scheme.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAllowed ¶
CheckAllowed analyzes all Go files under dir for imports based on a whitelist/blacklist scheme. If CheckAllowed encounters multiple files importing non-allowed imports, the first error is returned to the user.
Types ¶
Click to show internal directories.
Click to hide internal directories.