1
0
mirror of https://github.com/mum4k/termdash.git synced 2025-04-25 13:48:50 +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)
}
// HSplit returns two new areas created by splitting the provided area at the
// specified percentage of its height, applying the percentage to the second
// area. The percentage must be in the range 0 <= heightPerc <= 100.
// HSplitReversed returns two new areas created by splitting the provided area
// at the specified percentage of its height, applying the percentage to the
// second area. The percentage must be in the range 0 <= heightPerc <= 100.
// Can return zero size areas.
func HSplitReversed(area image.Rectangle, heightPerc int) (top image.Rectangle, bottom image.Rectangle, err error) {
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)
}
// VSplit returns two new areas created by splitting the provided area at the
// specified percentage of its width, applying the percentage to the second area.
// The percentage must be in the range 0 <= widthPerc <= 100.
// VSplitReversed returns two new areas created by splitting the provided area
// at the specified percentage of its width, applying the percentage to the
// second area. The percentage must be in the range 0 <= widthPerc <= 100.
// Can return zero size areas.
func VSplitReversed(area image.Rectangle, widthPerc int) (left image.Rectangle, right image.Rectangle, err error) {
return vSplit(area, widthPerc, true)