Our great sponsors
-
renderer
Simple, lightweight and faster response (JSON, JSONP, XML, YAML, HTML, File) rendering package for Go (by thedevsaddam)
-
golang-todo-app
Golang Todo App is a simple todo app backend created to teach how to create CRUD REST APis with Golang and Mongo DB for database. I wrote about how to build a simple golang todo app and this is the github repository for the todo project built in the article.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
The renderer package, which we use for handling API responses in the Golang backend todo app, provides a straightforward way to parse HTML templates. Under the hood, it uses the Go html/template package. However, you can use the default Go html/template package, depending on your preference.
Copy and paste the following code into the "index.html" file, or you can download the file from GitHub.
Related posts
- GoCondor: Trouble Using HTML templates
- Two golang template files but only one is getting rendered
- How do you handle nested templates and template hierarchies in an app with many templates?
- Recommended http helper libraries
- GitHub - raphamorim/react-ape: [Work in Progress] React Renderer to build UI interfaces using canvas/WebGL