A quick tour of building of doing web with golang, all living of the land with Go’s built-in standard library. Packages Working example, I have put my web server and templating code in source file $GOPATH/src/github.com/bm4cs/gotime/web/server.go. It does lots of things, but exports function StartServer (upper case first character means publically exported). package web func StartServer() { … } The main func in $GOPATH/src/github.com/bm4cs/gotime/myapp/app.go can import the web package: