We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 904e605 commit a7c4bf0Copy full SHA for a7c4bf0
examples/table/mindy/main.go
@@ -33,8 +33,8 @@ func main() {
33
Rows(data...).
34
StyleFunc(func(row, col int) lipgloss.Style {
35
color := lipgloss.Color(fmt.Sprint(data[row][col-col%2]))
36
- switch {
37
- case col%2 == 0:
+ switch col % 2 {
+ case 0:
38
return labelStyle.Foreground(color)
39
default:
40
return swatchStyle.Background(color)
0 commit comments