modood / table

Produces a string that represents slice data in a text table, inspired by gajus/table.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

当输出带颜色字符时,表格错乱

qinya0 opened this issue · comments

commented

image

image

func Green(s string) string {
	return fmt.Sprintf("%c[%dm%s%c[0m", 0x1B, 32, s, 0x1B)
}
commented

提个建议: 能不能可选的输出表格四周的线条 "+ - | "等字符