Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format is the public-facing interface that takes either a plain string or a list of strings and returns nicely aligned output.
func SimpleFormat ¶
Convenience function for using Columnize as easy as possible.
Types ¶
type Config ¶
type Config struct { // The string by which the lines of input will be split. Delim string // The string by which columns of output will be separated. Glue string // The string by which columns of output will be prefixed. Prefix string // A replacement string to replace empty fields Empty string }
func MergeConfig ¶
MergeConfig merges two config objects together and returns the resulting configuration. Values from the right take precedence over the left side.