3 ms·
These look great, thanks. I'm currently learning Go and find this kind of example much easier to follow than documentation. I'd like to see an example for embe
by petepete 10y ago
These look great, thanks. I'm currently learning Go and find this kind of example much easier to follow than documentation.
I'd like to see an example for embedding HTML templates properly. It took me an embarrassing amount of time to get beyond 'header.html' and 'footer.html' being separate, and I'm sure my solution isn't as elegant as it could be.
- joncalhoun 10y agoIs https://www.calhoun.io/creating-the-v-in-mvc/ https://www.calhoun.io/creating-the-v-in-mvc/ close to what you had in mind? I need to do a follow-up to that with the type I use to wrap that logic, but I am curious if this is inline with what you are looking for in the examples.
- petepete 10y agoYes, thank you. My solution was similar but less elegant; I plan on going through your post in more depth and attempt to reimplement my code with what I've learned. Once again, thank you for that post.