(n int)
| 353 | } |
| 354 | |
| 355 | func intToStr(n int) string { |
| 356 | if n == 0 { |
| 357 | return "0" |
| 358 | } |
| 359 | neg := n < 0 |
| 360 | if neg { |
| 361 | n = -n |
| 362 | } |
| 363 | digits := make([]byte, 0, 8) |
| 364 | for n > 0 { |
| 365 | digits = append([]byte{byte('0' + n%10)}, digits...) |
| 366 | n /= 10 |
| 367 | } |
| 368 | if neg { |
| 369 | digits = append([]byte{'-'}, digits...) |
| 370 | } |
| 371 | return string(digits) |
| 372 | } |
| 373 | |
| 374 | // ApplyGlobalBorder syncs the package-level SelBorder with this board's |
| 375 | // HighlightColor. Call on load and whenever HighlightColor changes. |
no outgoing calls
no test coverage detected