如何顯示模板的內(nèi)容?包主import ( "fmt" "html/template" "os")func main() { t := template.New("another") t,e:=t.ParseFiles("test.html") if(e!=nil){ fmt.Println(e); } t.Execute(os.Stdout, nil)}為什么不呢?test.html存在
golang輸出模板
繁星點(diǎn)點(diǎn)滴滴
2021-05-01 10:04:21