Go Standard Library Cookbook
上QQ阅读APP看书,第一时间看更新

Indenting a text document

The previous recipe depicts how to do string padding and whitespace trimming. This one will guide you through the indentation and unindentation of a text document. Similar principles from the previous recipes will be used.