Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/cmd/go/internal/web/http.go

    				r.errorDetail.r = res.Body
    				r.Body = &r.errorDetail
    			}
    		}
    	}
    
    	return r, nil
    }
    
    func getFile(u *urlpkg.URL) (*Response, error) {
    	path, err := urlToFilePath(u)
    	if err != nil {
    		return nil, err
    	}
    	f, err := os.Open(path)
    
    	if os.IsNotExist(err) {
    		return &Response{
    			URL:        u.Redacted(),
    			Status:     http.StatusText(http.StatusNotFound),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 17:34:27 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top