go/src/html/template/error.go

type Error

type ErrorCode

const OK

const ErrAmbigContext

const ErrBadHTML

const ErrBranchEnd

const ErrEndContext

const ErrNoSuchTemplate

const ErrOutputContext

const ErrPartialCharset

const ErrPartialEscape

const ErrRangeLoopReentry

const ErrSlashAmbig

const ErrPredefinedEscaper

const ErrJSTemplate

func (e *Error) Error() string {}

// errorf creates an error given a format string f and args.
// The template Name still needs to be supplied.
func errorf(k ErrorCode, node parse.Node, line int, f string, args ...any) *Error {}