Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Left func(pad rune) Padder = NewLeftPadder
View Source
var Right func(pad rune) Padder = NewRightPadder
Right returns a new right-side padder
Functions ¶
This section is empty.
Types ¶
type Padder ¶
type Padder interface { Pad(data []byte, length int) []byte Unpad(data []byte) []byte Inspect() []byte }
var None Padder = &nonePadder{}
func NewLeftPadder ¶
func NewRightPadder ¶ added in v0.8.0
NewRightPadder takes the given byte character and returns a padder which pads fields to the right of their values (for left-justified values)
Click to show internal directories.
Click to hide internal directories.