text/template/parse.Tree.expect (method)

4 uses

	text/template/parse (current package)
		parse.go#L172: func (t *Tree) expect(expected itemType, context string) item {
		parse.go#L330: 	t.expect(itemRightDelim, context)
		parse.go#L540: 	return t.newEnd(t.expect(itemRightDelim, "end").pos)
		parse.go#L553: 	token := t.expect(itemRightDelim, "else")