All web exercises are from the official website
- Syntax Basics
- Conditionals and Loops
- Functions
- Packages
- Arrays
- Slices
- Maps
- Structs
- Defined Types
- Encapsulation and Embedding
- Interfaces
- Recovering from Failure
- Goroutines and Channels
- Automated Testing
- Web Apps
- HTML Templates
- Appendix A: Opening Files
- Appendix B: Six Things Not Covered
Verb | Output |
%f | Floating-point number |
%d | Decimal integer |
%s | String |
%t | Boolean (true or false) |
%v | Any value (chooses an apppropriate format based on the supplied value's type |
%#v | Any value, formatted as it would appear in Go program code |
%T | Type of the supplied value (int, string, etc.) |
%% | A literal percent sign |