Optimize Golang App Speed by Caching HTML Templates

Constantin Druc ยท 01 Aug, 2024

In this video, I show you how to make your Go web app faster by using a template cache. Instead of loading your website templates from disk every time someone visits a page, you can load them once and store them in a cache. This means your website will load much faster! I also demonstrate how to use a dependency container to organize your code better, making it easier to add things like database connections in the future.