This repository contains a Go program that demonstrates the language, standard libraries, and tools.
The example has been copied from golang/example
A web server that answers the question: "Is Go 1.x out yet?"
Topics covered:
- Command-line flags (flag)
- Web servers (net/http)
- HTML Templates (html/template)
- Logging (log)
- Long-running background processes
- Synchronizing data access between goroutines (sync)
- Exporting server state for monitoring (expvar)
- Unit and integration tests (testing)
- Dependency injection
- Time (time)
podman build -t ghcr.io/l0rd/outyet:latest --arch amd64 \
--label "org.opencontainers.image.source=https://github.com/l0rd/outyet" \
--label "org.opencontainers.image.description=A very simple go app" \
--label "org.opencontainers.image.licenses=Apache-2.0" \
--label "org.opencontainers.image.description=A sample Go web app" .
podman push ghcr.io/l0rd/outyet:latest
kubectl apply -f config/
kubectl expose deployment outyet --type=NodePort --port=8080
ko delete -f config/
podman build -t ghcr.io/l0rd/outyet-dev:latest --arch amd64 \
--label "org.opencontainers.image.source=https://github.com/l0rd/outyet" \
--label "org.opencontainers.image.description=A very simple go app" \
--label "org.opencontainers.image.licenses=Apache-2.0" -f Dockerfile.dev .
podman push ghcr.io/l0rd/outyet-dev:latest