Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for shorterThan (0.1 sec)

  1. src/cmd/go/internal/load/pkg.go

    }
    
    func (s *ImportStack) Top() string {
    	if len(*s) == 0 {
    		return ""
    	}
    	return (*s)[len(*s)-1]
    }
    
    // shorterThan reports whether sp is shorter than t.
    // We use this to record the shortest import sequence
    // that leads to a particular package.
    func (sp *ImportStack) shorterThan(t []string) bool {
    	s := *sp
    	if len(s) != len(t) {
    		return len(s) < len(t)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top