Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for findVersionElement (0.23 sec)

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

    			if err != nil {
    				return ""
    			}
    			path = s
    		}
    		return path
    	})
    }
    
    // findVersionElement returns the slice indices of the final version element /vN in path.
    // If there is no such element, it returns -1, -1.
    func findVersionElement(path string) (i, j int) {
    	j = len(path)
    	for i = len(path) - 1; i >= 0; i-- {
    		if path[i] == '/' {
    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