Standard library / html/template
html/template.OK
No contextual escaping error. This example checks the typed code, not a reproduction of the failure. Expected stdout: 'true\n'.
Formal Syntax & Structure
go syntaxgo
const OK ErrorCodeWorking Example
Example Snippetgo
package main
import ( "fmt" "html/template")
func main() { var code template.ErrorCode = template.OK; fmt.Println(code == template.OK) }