deptest
package v1.92.3
Go to latest Published: Dec 16, 2025 License:BSD-3-Clause
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:11 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
The deptest package contains a shared implementation of negativedependency tests for other packages, making sure we don't startdepending on certain packages.
Index¶
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcImportAliasCheck¶added inv1.52.0
ImportAliasCheck checks that all packages are imported according to Tailscaleconventions.
Types¶
typeDepChecker¶
type DepChecker struct {GOOSstring// optionalGOARCHstring// optionalOnDep func(string)// if non-nil, called per dependencyOnImport func(string)// if non-nil, called per importBadDeps map[string]string// package => whyWantDepsset.Set[string]// packages expectedTagsstring// comma-separatedExtraEnv []string// extra environment for "go list" (e.g. CGO_ENABLED=1)}func (DepChecker)Check¶
func (cDepChecker) Check(t *testing.T)
Click to show internal directories.
Click to hide internal directories.