(columWidths []int)
| 133 | } |
| 134 | |
| 135 | func getBar(columWidths []int) string { |
| 136 | bar := "+" |
| 137 | |
| 138 | for i := 0; i < len(columWidths); i++ { |
| 139 | bar += "-" |
| 140 | for j := 0; j < columWidths[i]; j++ { |
| 141 | bar += "-" |
| 142 | } |
| 143 | bar += "-+" |
| 144 | } |
| 145 | |
| 146 | return bar |
| 147 | } |
| 148 | |
| 149 | func getColumWidths(columns []*Column) []int { |
| 150 | widths := make([]int, 0) |