Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for WhyDepth (0.06 sec)

  1. 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)
Back to top