Skip to content

A simple webserver based on go with templating feature

Notifications You must be signed in to change notification settings

mrahbar/simple-webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple webserver based on go with templating feature

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published