A simple go web application example for working out Go web stuffs
- As simple as possible
- No dependencies
- No surprise
- Extensible
Largely inspired by Mat Ryer videos on how he writes web API.
make build
Will create an executable named server
in bin/ folder.
With Docker:
./scripts/build_image.sh
An image named goswa
will be build.
make run
To test it:
curl localhost:8080?name=Dude
Tested with minikube.
Make you docker client point to run in minikube environment with:
eval $(minikube docker-env)
Build your image:
./scripts/build_image.sh
Deploy it:
minikube kubectl -- apply -f build/package/deployment.yaml