- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for WhyDepth (0.22 sec)
-
src/cmd/go/internal/modcmd/why.go
byModule[m.Path] = append(byModule[m.Path], path) } } sep := "" for _, m := range mods { best := "" bestDepth := 1000000000 for _, path := range byModule[m.Path] { d := modload.WhyDepth(path) if d > 0 && d < bestDepth { best = path bestDepth = d } } why := modload.Why(best) if why == "" { vendoring := "" if *whyVendor {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 01 21:32:23 UTC 2023 - 3.8K bytes - Viewed (0) -
src/cmd/go/internal/modload/load.go
pkg, ok := loaded.pkgCache.Get(path) if !ok { return "" } return pkg.why() } // WhyDepth returns the number of steps in the Why listing. // If there is no reason for the package to be in the current build, // WhyDepth returns 0. func WhyDepth(path string) int { n := 0 pkg, _ := loaded.pkgCache.Get(path) for p := pkg; p != nil; p = p.stack { n++ } return n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 14:56:56 UTC 2024 - 84K bytes - Viewed (0)