html/template: runtime error: slice bounds out of range (original) (raw)
The following program crashes with panic:
package main
import ( "html/template" "io/ioutil" )
func main() { t, err := template.New("foo").Parse(string(data)) if err != nil { return } t.Execute(ioutil.Discard, nil) }
var data = "