package main
import (
"fmt"
"text/template"
)
func main() {
t := template.New("base")
fmt.Println(t.Lookup("base"))
t.Parse("{{define \"test\"}}{{end}}")
fmt.Println(t.Lookup("test"))
fmt.Println(t.Lookup("base"))
}
returns
<nil>
&{test 0x2083060e0 0x20829c400 }
&{base 0x208306000 0x20829c400 }
on tip b21ff39
First line of output should not be <nil>