https://github.com/tomcz/golang-webapp
Basic golang web application skeleton
https://github.com/tomcz/golang-webapp
embedding golang server-side-rendering webapp
Last synced: about 1 month ago
JSON representation
Basic golang web application skeleton
- Host: GitHub
- URL: https://github.com/tomcz/golang-webapp
- Owner: tomcz
- License: mit
- Created: 2022-02-11T05:07:09.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2025-12-04T02:45:10.000Z (4 months ago)
- Last Synced: 2025-12-05T21:54:58.724Z (4 months ago)
- Topics: embedding, golang, server-side-rendering, webapp
- Language: JavaScript
- Homepage:
- Size: 882 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# golang-webapp
This project provides a basic web application [skeleton](https://wiki.c2.com/?WalkingSkeleton) written in golang to make it easier to get something rolling without trying to figure out how to link all the bits together.
Features:
* Static assets served directly from the webapp.
* Server-side-rendered HTML templates, with buffered template rendering to prevent output of incomplete or malformed content in the event of template evaluation errors.
* Two build modes:
* `dev` - serves static assets and templates directly from the local filesystem. Allows for development of templates and static assets without needing to restart the application.
* `prod` - embeds templates and static assets into the application binary to allow ease of distribution. Changes to templates or static assets require a new application build.