Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testFileServerImplicitLeadingSlash (0.29 sec)

  1. src/net/http/fs_test.go

    	}
    }
    
    func mustRemoveAll(dir string) {
    	err := os.RemoveAll(dir)
    	if err != nil {
    		panic(err)
    	}
    }
    
    func TestFileServerImplicitLeadingSlash(t *testing.T) { run(t, testFileServerImplicitLeadingSlash) }
    func testFileServerImplicitLeadingSlash(t *testing.T, mode testMode) {
    	tempDir := t.TempDir()
    	if err := os.WriteFile(filepath.Join(tempDir, "foo.txt"), []byte("Hello world"), 0644); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 23:39:44 UTC 2024
    - 49.9K bytes
    - Viewed (0)
Back to top