Build and runtime instructions

After verifying that our Go environment is properly configured, we can change the directory to a project directory and start a RESTful web server with the following command:

$ RUN_HTTP_SERVER=TRUE ./chapter4

See the My Go build and runtime process section in the Appendix, Miscellaneous Information and How-Tos, for details regarding how I manage my Go environment.

We'll need to open another Terminal window to run our chapter4 executable. Let's build and run our chapter4 app to exercise our HOFs with the following command:

$ go build && ./chapter4

The top few lines of output should look like this:

ByMake - Honda
-----------------------
car: Honda Accord
car: Honda Accord ES2
. . .