Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for modPathOK (0.14 sec)

  1. src/cmd/vendor/golang.org/x/mod/module/module.go

    // To avoid case ambiguity, the domain name must be entirely lower case.
    func firstPathOK(r rune) bool {
    	return r == '-' || r == '.' ||
    		'0' <= r && r <= '9' ||
    		'a' <= r && r <= 'z'
    }
    
    // modPathOK reports whether r can appear in a module path element.
    // Paths can be ASCII letters, ASCII digits, and limited ASCII punctuation: - . _ and ~.
    //
    // This matches what "go get" has historically recognized in import paths,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 20:17:07 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/func.go

    	}
    
    	return pkg, sym, nil
    }
    
    // Borrowed from x/mod.
    func modPathOK(r rune) bool {
    	if r < utf8.RuneSelf {
    		return r == '-' || r == '.' || r == '_' || r == '~' ||
    			'0' <= r && r <= '9' ||
    			'A' <= r && r <= 'Z' ||
    			'a' <= r && r <= 'z'
    	}
    	return false
    }
    
    func escapedImportPathOK(r rune) bool {
    	return modPathOK(r) || r == '+' || r == '/' || r == '%'
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top