Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestIndirectPrint (0.27 sec)

  1. src/html/template/escape_test.go

    				want := f0(input)
    				if got := f1(want); want != got {
    					t.Errorf("%s %s with %T %q: want\n\t%q,\ngot\n\t%q", n0, n1, input, input, want, got)
    				}
    			}
    		}
    	}
    }
    
    func TestIndirectPrint(t *testing.T) {
    	a := 3
    	ap := &a
    	b := "hello"
    	bp := &b
    	bpp := &bp
    	tmpl := Must(New("t").Parse(`{{.}}`))
    	var buf strings.Builder
    	err := tmpl.Execute(&buf, ap)
    	if err != nil {
    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