https://github.com/mrahbar/simple-webserver
A simple webserver based on go with templating feature
https://github.com/mrahbar/simple-webserver
docker golang kubernetes templating testing
Last synced: 6 months ago
JSON representation
A simple webserver based on go with templating feature
- Host: GitHub
- URL: https://github.com/mrahbar/simple-webserver
- Owner: mrahbar
- Created: 2017-10-06T22:29:50.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-02-05T20:30:51.000Z (over 6 years ago)
- Last Synced: 2024-03-18T01:55:31.455Z (over 2 years ago)
- Topics: docker, golang, kubernetes, templating, testing
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### A simple webserver based on go with templating feature
The templating feature based on 'text/template'.
Additionally all environment variable are available too as well as the current date as ```.Date``` (see example below).
The template can either be passed as a flag: ```-template='{"date": "{{.Date}}"}"'```
or as an environment variable: ```TEMPLATE='{"date": "{{.Date}}"}"' ./simple-webserver```