Let’s make a simple todo app with Go

Generally, Go is perfect for building microservices, but that doesn’t mean building a simple MVC app is difficult. Go has built-in support for parsing HTML templates, although we won’t focus on that in this case. First, let’s write the Go code to serve an HTML page and save it in a directory. In this example, let’s create a directory called todoapp and inside it, create a home.tpl file. Paste the HTML content in home.tpl, which will make an HTTP call to our backend application. ...

November 23, 2017 Β· 5 min Β· Saddam H