Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkCanParse (0.28 sec)

  1. src/html/template/template.go

    //		Execution stops immediately with an error.
    func (t *Template) Option(opt ...string) *Template {
    	t.text.Option(opt...)
    	return t
    }
    
    // checkCanParse checks whether it is OK to parse templates.
    // If not, it returns an error.
    func (t *Template) checkCanParse() error {
    	if t == nil {
    		return nil
    	}
    	t.nameSpace.mu.Lock()
    	defer t.nameSpace.mu.Unlock()
    	if t.nameSpace.escaped {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top