Implement the function handle
to accept lines of text and output reformatted text, wrapped at columnWidth
characters, without breaking words.
So
Yr brunch Godard, readymade pug Pinterest gastropub put a bird on it Tumblr.
Sartorial swag beard, selvage bitters tofu vinyl.
Tattooed kogi organic scenester heirloom, cred four loko cardigan cray meh Portland master cleanse photo booth Shoreditch farm-to-table.
when wrapped at 30 characters becomes
Yr brunch Godard, readymade
pug Pinterest gastropub put a
bird on it Tumblr. Sartorial
swag beard, selvage bitters
tofu vinyl. Tattooed kogi
organic scenester heirloom,
cred four loko cardigan cray
meh Portland master cleanse
photo booth Shoreditch
farm-to-table.
Breaking like this:
Yr brunch Godard, readymade pu
g Pinterest gastropub put a bi
rd on it Tumblr. Sartorial swa
g beard, selvage bitters tofu
vinyl. Tattooed kogi organic s
cenester heirloom, cred four l
oko cardigan cray meh Portland
master cleanse photo booth Sh
oreditch farm-to-table.
is incorrect.
BUG:
run go main.go 5
INPUT:
OUTPUT: