Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParseFiles (0.15 sec)

  1. src/html/template/escape_test.go

    	} else if buf.String() != "hello" {
    		t.Errorf(`Expected "hello"; got %q`, buf.String())
    	}
    }
    
    // This is a test for issue 3272.
    func TestEmptyTemplateHTML(t *testing.T) {
    	page := Must(New("page").ParseFiles(os.DevNull))
    	if err := page.ExecuteTemplate(os.Stdout, "page", "nothing"); err == nil {
    		t.Fatal("expected error")
    	}
    }
    
    type Issue7379 int
    
    func (Issue7379) SomeMethod(x int) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 16 03:29:27 UTC 2023
    - 56.2K bytes
    - Viewed (0)
Back to top