Versions in this module Expand all Collapse all v1 v1.1.0 Jan 24, 2022 v1.0.0 Jun 12, 2021 Changes in this version + const ReasonNotAllow + const ReasonRejected + type Check struct + Folder string + Rules []Rule + Subpackages bool + func (chk Check) ValidateImports(path string, imports []*ast.ImportSpec, debug bool) []ValidationError + type Config struct + Checks []Check + type Reason int + type Rule struct + Allow []string + Prefix string + Reject []string + type ValidationError struct + Check Check + ImportPath string + Path string + Reason Reason + Rule Rule + func Validate(root string, checks []Check, debug bool) ([]ValidationError, error)