MCPcopy Create free account
hub / github.com/B33pBeeps/redthread / intToStr

Function intToStr

internal/app/notes.go:355–372  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

353}
354
355func 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.

Callers 3

handleRenameKeyMethod · 0.85
drawTabBarMethod · 0.85
AddBoardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected