We learned about resources and more advanced routing last time in episode 24, so let’s switch gears and focus on how to actually render something to the browser.
To write frontend code, you need to learn its templating language, called plush (https://github.com/gobuffalo/plush). Plush offers a more intuitive syntax and access to more powerful functionality than the standard library’s
html/template package, and it gets out of your way more so you can focus on your webapp, not learning another language or syntax.
Plush is really important to learn about, because you’ll need it for any web application you build.
All code is open source at https://github.com/arschles/go-in-5-minutes
Keep on rockin, Gophers!
Check out the example code on Github.
If you enjoyed this screencast, please consider becoming a backer and supporting Go in 5 Minutes. Cool stickers and more await you!