Documentation
¶
Index ¶
- func Format(in string, options ...Option) (out string)
- func FormatHTML(body string, options ...Option) (out string, err error)
- func Unformat(text string, options ...UnformatOption) string
- func UnformatHTML(body string, options ...UnformatOption) (out string, err error)
- type Option
- type UnformatOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatHTML ¶
FormatHTML format HTML content
func Unformat ¶
func Unformat(text string, options ...UnformatOption) string
Unformat to remove all spaces
func UnformatHTML ¶
func UnformatHTML(body string, options ...UnformatOption) (out string, err error)
UnformatHTML cleanup spaces for HTML
Types ¶
type UnformatOption ¶
UnformatOption addition unformat options
Click to show internal directories.
Click to hide internal directories.