type html/template.context
93 uses
html/template (current package)
context.go#L18: type context struct {
context.go#L28: func (c context) String() string {
context.go#L37: func (c context) eq(d context) bool {
context.go#L49: func (c context) mangle(templateName string) string {
escape.go#L22: c, _ := tmpl.esc.escapeTree(context{}, node, name, 0)
escape.go#L88: output map[string]context
escape.go#L106: map[string]context{},
escape.go#L123: func (e *escaper) escape(c context, n parse.Node) context {
escape.go#L146: func (e *escaper) escapeAction(c context, n *parse.ActionNode) context {
escape.go#L169: return context{
escape.go#L195: return context{
escape.go#L405: func nudge(c context) context {
escape.go#L423: func join(a, b context, node parse.Node, nodeName string) context {
escape.go#L461: return context{
escape.go#L468: func (e *escaper) escapeBranch(c context, n *parse.BranchNode, nodeName string) context {
escape.go#L490: func (e *escaper) escapeList(c context, n *parse.ListNode) context {
escape.go#L504: func (e *escaper) escapeListConditionally(c context, n *parse.ListNode, filter func(*escaper, context) bool) (context, bool) {
escape.go#L537: func (e *escaper) escapeTemplate(c context, n *parse.TemplateNode) context {
escape.go#L547: func (e *escaper) escapeTree(c context, node parse.Node, name string, line int) (context, string) {
escape.go#L561: return context{
escape.go#L566: return context{
escape.go#L587: func (e *escaper) computeOutCtx(c context, t *template.Template) context {
escape.go#L598: return context{
escape.go#L609: func (e *escaper) escapeTemplateBody(c context, t *template.Template) (context, bool) {
escape.go#L610: filter := func(e1 *escaper, c1 context) bool {
escape.go#L648: func (e *escaper) escapeText(c context, n *parse.TextNode) context {
escape.go#L717: func contextAfterText(c context, s []byte) (context, int) {
escape.go#L744: return context{
escape.go#L775: return context{state: stateTag, element: element}, i
html.go#L178: s, c, i, allText := []byte(html), context{}, 0, true
html.go#L216: c, i = context{state: stateTag, element: c.element}, i1
transition.go#L16: var transitionFunc = [...]func(context, []byte) (context, int){
transition.go#L48: func tText(c context, s []byte) (context, int) {
transition.go#L55: return context{state: stateHTMLCmt}, i + 4
transition.go#L71: return context{state: stateTag, element: e}, j
transition.go#L86: func tTag(c context, s []byte) (context, int) {
transition.go#L93: return context{
transition.go#L100: return context{state: stateError, err: err}, len(s)
transition.go#L104: return context{
transition.go#L131: return context{state: state, element: c.element, attr: attr}, j
transition.go#L135: func tAttrName(c context, s []byte) (context, int) {
transition.go#L138: return context{state: stateError, err: err}, len(s)
transition.go#L146: func tAfterName(c context, s []byte) (context, int) {
transition.go#L171: func tBeforeValue(c context, s []byte) (context, int) {
transition.go#L189: func tHTMLCmt(c context, s []byte) (context, int) {
transition.go#L191: return context{}, i + 3
transition.go#L212: func tSpecialTagEnd(c context, s []byte) (context, int) {
transition.go#L215: return context{}, i
transition.go#L247: func tAttr(c context, s []byte) (context, int) {
transition.go#L252: func tURL(c context, s []byte) (context, int) {
transition.go#L264: func tJS(c context, s []byte) (context, int) {
transition.go#L288: return context{
transition.go#L301: func tJSDelimited(c context, s []byte) (context, int) {
transition.go#L320: return context{
transition.go#L342: return context{
transition.go#L354: func tBlockCmt(c context, s []byte) (context, int) {
transition.go#L371: func tLineCmt(c context, s []byte) (context, int) {
transition.go#L404: func tCSS(c context, s []byte) (context, int) {
transition.go#L477: func tCSSStr(c context, s []byte) (context, int) {
transition.go#L502: return context{
transition.go#L517: func tError(c context, s []byte) (context, int) {
 |
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. |