Go template function

后端 未结 3 2034
你的背包
你的背包 2021-02-05 02:26

It noticed a weird thing with Go templates when I try to use Funcs and FuncMap. The following code works as expected:

buffer := bytes.N         


        
3条回答
  •  情歌与酒
    2021-02-05 03:05

    you need to first parse all the files and execute them .you cannot direclty access all the files .

提交回复
热议问题