Standard library / html/template

html/template.ErrorCode

Identifies the category of contextual escaping error. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
type ErrorCode int

Working Example

Example Snippetgo
package main
import (  "fmt"  "html/template")
func main() {  var code template.ErrorCode = template.ErrEndContext  fmt.Println(code == template.ErrEndContext)}
Go Reference