Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/cmd/compile/internal/ssa/debug_test.go

    		for j, hvt := range hv {
    			if hvt != kv[j] {
    				return false
    			}
    		}
    	}
    
    	return true
    }
    
    // canonFileName strips everything before "/src/" from a filename.
    // This makes file names portable across different machines,
    // home directories, and temporary directories.
    func canonFileName(f string) string {
    	i := strings.Index(f, "/src/")
    	if i != -1 {
    		f = f[i+1:]
    	}
    	return f
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 16:11:47 UTC 2024
    - 28.6K bytes
    - Viewed (0)
Back to top