Example represent small site with admin-panel.
Go 1.11 or above.
Run the following command to get the sources:
git clone https://github.com/night-codes/golang-site-example
cd golang-site-example
go get -u
Start the application:
go run .
Now the application runned on address http://localhost:8080/.
You can found the admin panel by address http://localhost:8080/admin/.
Username/Password: admin secret