func github.com/google/safehtml/template.errorf
13 uses
github.com/google/safehtml/template (current package)
error.go#L278: func errorf(k ErrorCode, node parse.Node, line int, f string, args ...interface{}) *Error {
escape.go#L146: err: errorf(ErrPredefinedEscaper, n, n.Line, "predefined escaper %q disallowed in template", ident),
escape.go#L163: err: errorf(ErrEscapeAction, n, n.Line, "cannot escape action %v: %s", n, err),
escape.go#L354: err: errorf(ErrBranchEnd, node, 0, "{{%s}} branches end in different contexts: %v, %v", nodeName, a, b),
escape.go#L494: err: errorf(ErrNoSuchTemplate, node, line, "%q is an incomplete or empty template", name),
escape.go#L499: err: errorf(ErrNoSuchTemplate, node, line, "no such template %q", name),
escape.go#L532: err: errorf(ErrOutputContext, t.Tree.Root, 0, "cannot compute output context for template %s", t.Name()),
escape.go#L587: err: errorf(ErrCSPCompatibility, n, 0, `"javascript:" URI disallowed for CSP compatibility`),
escape.go#L594: err: errorf(ErrCSPCompatibility, n, 0, "inline event handler %q is disallowed for CSP compatibility", c.attr.name),
escape.go#L624: err: errorf(ErrUnbalancedJsTemplate, n, 0, "Mixing template systems can cause security vulnerabilites. Therefore, there can be no safehtml/template insertion points or actions inside an ES6 template, and all ES6 templates must be closed: %v", err.Error()),
escape.go#L685: err: errorf(ErrBadHTML, nil, 0, "%q in unquoted attr: %q", s[j:j+1], s[:i]),
transition.go#L126: err: errorf(ErrBadHTML, nil, 0, "expected space, attr name, or end of tag, but got %q", s[i:]),
transition.go#L261: return -1, errorf(ErrBadHTML, nil, 0, "%q in attribute name: %.32q", s[j:j+1], s)
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |