Results 4 comments of Nathan Kerr

The "server" only does one thing. It routes HTTP requests. It doesn't do anything else. The data needed to make that mapping is stored in a package global map (resources)....

Yes, http.ResponseWriter should be passed. rest.go does two things: it routes HTTP requests to a defined method, and provides a set of helper functions for common HTTP responses. fmt.Fprintf already...

For just a string response? Are you looking for something like the BadRequest method (but that returns a HTTP 200)? If it is just a simple string, then I can...

The function names were derived from the ones used in Ruby on Rails. Options has to distinguish when it is used one way or the other. Delete could work the...