[go-nuts] Re: ParseFiles equivalent for strings?

2018-08-05 Thread adam.azarchs via golang-nuts
You can, if you wish, get the best of both worlds by using go generate and a tool like https://github.com/shurcooL/vfsgen to automatically generate go source from those files. On Sunday, August 5, 2018 at 7:33:41 AM UTC-7, buc...@gmail.com wrote: > > After changing from embedding my .html/css co

[go-nuts] Re: ParseFiles equivalent for strings?

2018-08-05 Thread bucarr
After changing from embedding my .html/css code in the body of my .go program, to making a separate, stand-alone .html/css file and including a template.Must(template.ParseFiles("filename.html"))' line in the .go source file, I can see that the go creators are a lot smarter than I am. MUCH eas