Naming stuff is hard, so this name was generated by GitHub.
As it wasn't specified how to interact with the code written for tasks #1 and #2 I simply added tests which can be modified.
The webapi can be run with: GO111MODULE=on go run main.go
from the commandline, or built with GO111MODULE=on CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
The docker container can be built with:
docker build --force-rm -t fantastic-lamp .
docker run --publish 6060:8080 --name test --rm fantastic-lamp
I used the following resources to complete the tasks:
- https://github.com/golang/example/ outyet
- https://github.com/devaof/fizzbuzz
- https://www.golangprograms.com/replace-any-non-alphanumeric-character-sequences-with-a-dash-using-regex.html
- https://github.com/SpecialBrands/goexpression which I forked, changed, and for which I submitted a PR (#3) to https://github.com/zdebeer99/goexpression
- https://dev.to/plutov/docker-and-go-modules-3kkn
- https://github.com/golang/go/wiki/Modules