Versions in this module Expand all Collapse all v1 v1.0.0 Jun 26, 2019 Changes in this version + var StringToListType = map[string]ListType + type Depguard struct + IncludeGoRoot bool + ListType ListType + Packages []string + TestPackages []string + func (dg *Depguard) Run(config *loader.Config, prog *loader.Program) ([]*Issue, error) + type Issue struct + PackageName string + Position token.Position + type ListType int + const LTBlacklist + const LTWhitelist + type RootChecker struct + func NewRootChecker(buildCtx *build.Context) *RootChecker + func (rc *RootChecker) IsRoot(path, sourceDir string) (bool, error)