One of my recent work was a design and implementation of a framework for Go programs. It is open-sourced at GitHub https://github.com/cybozu-go/cmd .
During the work, I have tackled how to enhance Go's http.Server
by adding access logging and ability to stop gracefully. This article summarizes my findings
and tricks used in github.com/cybozu-go/cmd
package.