- install golang 1.16-beta1
- clone this repo
- run
go1.16beta1 run main.go
- open localhost:8083
- see the contents of
hello.txt
served
Sadly because the file is embeded at compile time(1) changes to the file won't be reflected in the server response; the service must be restarted on file changes.
(1) needs citation