Standard library / html/template

html/template.ErrSlashAmbig

A JavaScript slash cannot be resolved as division or regexp. This example checks the typed code, not a reproduction of the failure. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
const ErrSlashAmbig ErrorCode

Working Example

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