(ctx *compileContext)
| 712 | } |
| 713 | |
| 714 | func (c *StructFieldCode) structKey(ctx *compileContext) string { |
| 715 | if ctx.escapeKey { |
| 716 | rctx := &RuntimeContext{Option: &Option{Flag: HTMLEscapeOption}} |
| 717 | return fmt.Sprintf(`%s:`, string(AppendString(rctx, []byte{}, c.key))) |
| 718 | } |
| 719 | return fmt.Sprintf(`"%s":`, c.key) |
| 720 | } |
| 721 | |
| 722 | func (c *StructFieldCode) flags() OpFlags { |
| 723 | var flags OpFlags |
no test coverage detected