An open API service indexing awesome lists of open source software.

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

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```