June 2017
Intermediate to advanced
400 pages
10h 32m
English
This application makes use of a struct to maintain the state of the colored text. In this case, it stores the color of the text and the value of the text. The final string is rendered when you call the String() method, which will return either the colored text or plain text depending on the values stored in the struct. By default, the text will be plain.
Read now
Unlock full access