Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
§5.3. Looping with For Statements
203
§5.4. Communication and Concurrency Statements
205
§5.5. Defer, Panic, and Recover
212
§5.6.1. Function Arguments
220
§5.6.2. The init() and main() Functions
224
§5.6.4. Recursive Functions
227
The purpose of this chapter is to complete the coverage of Go procedural programming that the earlier chapters began. Go can be used to write purely procedural programs, to write object-oriented programs, or to write programs that combine both paradigms. It is important to learn procedural Go since object-oriented Go builds on the procedural foundations, as does concurrent Go programming.