зеркало из https://github.com/golang/tools.git
refactor/importgraph: document that graphs are cyclic
Change-Id: I195656b523488433945b3215558c3442cf45b2bd Reviewed-on: https://go-review.googlesource.com/19831 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
Родитель
51464e57af
Коммит
ac02106e04
|
@ -20,6 +20,8 @@ import (
|
|||
// imported packages (prerequisites); for a reverse graph, it is the set
|
||||
// of importing packages (clients).
|
||||
//
|
||||
// Graph construction inspects all imports in each package's directory,
|
||||
// including those in _test.go files, so the resulting graph may be cyclic.
|
||||
type Graph map[string]map[string]bool
|
||||
|
||||
func (g Graph) addEdge(from, to string) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче