outyet

command module
v0.0.0-...-c160512 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

Go example project

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)
Build the container image
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
Run the application on Kubernetes
kubectl apply -f config/
kubectl expose deployment outyet --type=NodePort --port=8080
Delete the application
ko delete -f config/
Build the container to debug the application
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

Documentation

Overview

outyet is a web server that announces whether or not a particular Go version has been tagged.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL