Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
Config holds the configuration required to justify text.
func (*Config) Justify ¶
justify takes an input and a desired line length and returns a fully-justified version of the text. Taken wholesale from Malik Browne's great JavaScript walkthrough that does the same https://www.malikbrowne.com/blog/text-justification-coding-question. This version adds support for godoc code examples.
Click to show internal directories.
Click to hide internal directories.