os-autoinst / openqa-mon

Collection of terminal monitoring utilities for openQA
12 stars 13 forks source link

Refactor spaces() function in tui #146

Closed ilmanzo closed 6 months ago

ilmanzo commented 7 months ago

Using strings.Repeat() is more efficient because it avoids unnecessary iterations or buffer allocations.

Restate also the crop-extend name logic to be a bit more clear.

grisu48 commented 6 months ago

Thank you for the nice refactor :slightly_smiling_face: