1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-28 13:48:51 +08:00

Linting adjustments

This commit is contained in:
Matthew Coleman 2024-03-07 18:49:29 -05:00
parent 5b664845a5
commit 029ce611e8

View File

@ -164,9 +164,9 @@ func HSplit(area image.Rectangle, heightPerc int) (top image.Rectangle, bottom i
return hSplit(area, heightPerc, false) return hSplit(area, heightPerc, false)
} }
// HSplit returns two new areas created by splitting the provided area at the // HSplitReversed returns two new areas created by splitting the provided area
// specified percentage of its height, applying the percentage to the second // at the specified percentage of its height, applying the percentage to the
// area. The percentage must be in the range 0 <= heightPerc <= 100. // second area. The percentage must be in the range 0 <= heightPerc <= 100.
// Can return zero size areas. // Can return zero size areas.
func HSplitReversed(area image.Rectangle, heightPerc int) (top image.Rectangle, bottom image.Rectangle, err error) { func HSplitReversed(area image.Rectangle, heightPerc int) (top image.Rectangle, bottom image.Rectangle, err error) {
return hSplit(area, heightPerc, true) return hSplit(area, heightPerc, true)
@ -180,9 +180,9 @@ func VSplit(area image.Rectangle, widthPerc int) (left image.Rectangle, right im
return vSplit(area, widthPerc, false) return vSplit(area, widthPerc, false)
} }
// VSplit returns two new areas created by splitting the provided area at the // VSplitReversed returns two new areas created by splitting the provided area
// specified percentage of its width, applying the percentage to the second area. // at the specified percentage of its width, applying the percentage to the
// The percentage must be in the range 0 <= widthPerc <= 100. // second area. The percentage must be in the range 0 <= widthPerc <= 100.
// Can return zero size areas. // Can return zero size areas.
func VSplitReversed(area image.Rectangle, widthPerc int) (left image.Rectangle, right image.Rectangle, err error) { func VSplitReversed(area image.Rectangle, widthPerc int) (left image.Rectangle, right image.Rectangle, err error) {
return vSplit(area, widthPerc, true) return vSplit(area, widthPerc, true)