Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for safeExecute (0.19 sec)

  1. staging/src/k8s.io/cli-runtime/pkg/printers/template.go

    		return fmt.Errorf("error executing template %q: %v", p.rawTemplate, err)
    	}
    	return nil
    }
    
    // safeExecute tries to execute the template, but catches panics and returns an error
    // should the template engine panic.
    func (p *GoTemplatePrinter) safeExecute(w io.Writer, obj interface{}) error {
    	var panicErr error
    	// Sorry for the double anonymous function. There's probably a clever way
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 3.4K bytes
    - Viewed (0)
Back to top