Documentation ¶
Index ¶
- func BytesToUTF8(gbkBytes []byte) string
- func FromUTF8(utf8Str string) string
- func FromUTF8Bytes(utf8Bytes []byte) string
- func PadCenter(s string, width int, pad string) (ret string)
- func PadCenterSpace(s string, width int) string
- func PadLeft(s string, width int, pad string) string
- func PadLeftSpace(s string, width int) string
- func PadRight(s string, width int, pad string) string
- func PadRightSpace(s string, width int) string
- func RuneLen(s string) (ret int)
- func ToUTF8(gbkStr string) string
- type ColumnAlign
- type Columnize
- func (col *Columnize) AddRow(row []string)
- func (col *Columnize) SetColumnMasks(columnMasks []string)
- func (col *Columnize) SetColumns(columns []string)
- func (col *Columnize) SetRows(rows [][]string)
- func (col *Columnize) SetShowBorder(isShowBorder bool)
- func (col *Columnize) SetTitle(title string)
- func (col *Columnize) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ColumnAlign ¶
type ColumnAlign int
const ( ColumnAlignLeft ColumnAlign = 0 ColumnAlignRight ColumnAlign = 1 ColumnAlignCenter ColumnAlign = 2 )
type Columnize ¶
type Columnize struct {
// contains filtered or unexported fields
}
func NewColumnize ¶
func NewColumnize() *Columnize
func NewColumnizeHideBorder ¶
func NewColumnizeHideBorder() *Columnize
func (*Columnize) SetColumnMasks ¶
func (*Columnize) SetColumns ¶
Click to show internal directories.
Click to hide internal directories.