Goji now honors two environment variables: GOJI_BIND (which accepts the full "bind" flag syntax) and PORT (which is treated as a TCP port). Ref #20.
Package bind provides a convenient syntax for binding to sockets, as well as a fair bit of magic to automatically Do The Right Thing in both development and production.