Documentation ¶
Overview ¶
Devweb is a simple environment for developing a web server. It runs its own web server on the given address and proxies all requests to the http server program named by importpath. It takes care of recompiling and restarting the program as needed.
The server program should be a trivial main program like:
package main import ( "code.google.com/p/rsc/devweb/slave" _ "this/package" _ "that/package" ) func main() { slave.Main() }
The import _ lines import packages that register HTTP handlers, like in an App Engine program.
As you make changes to this/package or that/package (or their dependencies), devweb recompiles and relaunches the servers as needed to serve requests.
Notes ¶
Bugs ¶
Devweb should probably
Click to show internal directories.
Click to hide internal directories.