MCPcopy Create free account
hub / github.com/LissaGreense/GO4SQL / getBar

Function getBar

engine/table.go:135–147  ·  view source on GitHub ↗
(columWidths []int)

Source from the content-addressed store, hash-verified

133}
134
135func 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
149func getColumWidths(columns []*Column) []int {
150 widths := make([]int, 0)

Callers 1

ToStringMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected