MCPcopy Index your code
hub / github.com/box-cli-maker/box-cli-maker / findAlign

Method findAlign

util.go:204–216  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202}
203
204func (b *Box) findAlign() (string, error) {
205 switch b.contentAlign {
206 case Center:
207 return centerAlign, nil
208 case Right:
209 return rightAlign, nil
210 case Left, "":
211 // If ContentAlign isn't provided then by default Alignment is Left
212 return leftAlign, nil
213 default:
214 return "", fmt.Errorf("invalid Content Alignment %s", b.contentAlign)
215 }
216}
217
218func repeatWithString(c string, n int, str string) string {
219 cstr := ansi.Strip(str)

Callers 2

TestFindAlignFunction · 0.95
formatLineMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestFindAlignFunction · 0.76