This blog post is brought to you by the developer of BitBudget. BitBudget is an automated budgeting app for Android and iOS which syncs with your bank account and helps you avoid overspending. If you’d like to quit living paycheck-to-paycheck and get a better handle on your finances, download it today! https://bitbudget.io
Quick little demonstration of how to server static HTML pages using Golang. This example assumes both your index.html and webserver.go files are in the same directory:
Need routes to other pages? Check out this example I have posted on GitHub: SimpleGolangWebServer
Need to serve up JSON instead of HTML? Check out this example by Tom Hudson: simple-json-api.go