MCPcopy Create free account
hub / github.com/MiniCodeMonkey/chief / min

Function min

internal/tui/dashboard.go:755–760  ·  view source on GitHub ↗

min returns the minimum of two integers.

(a, b int)

Source from the content-addressed store, hash-verified

753
754// min returns the minimum of two integers.
755func min(a, b int) int {
756 if a < b {
757 return a
758 }
759 return b
760}
761
762// truncateWithEllipsis truncates text to maxLen characters, adding "..." if truncated.
763func truncateWithEllipsis(text string, maxLen int) string {

Callers 12

RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
TestMinMaxHelpersFunction · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
RenderMethod · 0.85
renderGitignoreStepMethod · 0.85
renderPRDNameStepMethod · 0.85
renderGHErrorStepMethod · 0.85
RenderMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestMinMaxHelpersFunction · 0.68