Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for makeImportValid (0.13 sec)

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

    // a special case, so that all the code to deal with ordinary imports works
    // automatically.
    func dirToImportPath(dir string) string {
    	return pathpkg.Join("_", strings.Map(makeImportValid, filepath.ToSlash(dir)))
    }
    
    func makeImportValid(r rune) rune {
    	// Should match Go spec, compilers, and ../../go/parser/parser.go:/isValidImport.
    	const illegalChars = `!"#$%&'()*,:;<=>?[\]^{|}` + "`\uFFFD"
    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