MCPcopy Create free account
hub / github.com/git-bug/git-bug / Len

Method Len

commands/commands.go:78–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76type commandSorterByName []*cobra.Command
77
78func (c commandSorterByName) Len() int { return len(c) }
79func (c commandSorterByName) Swap(i, j int) { c[i], c[j] = c[j], c[i] }
80func (c commandSorterByName) Less(i, j int) bool { return c[i].CommandPath() < c[j].CommandPath() }

Callers 4

parseAuthorMethod · 0.45
parseIDMethod · 0.45
parseDateMethod · 0.45
bugsDefaultFormatterFunction · 0.45

Calls

no outgoing calls

Tested by 3

parseAuthorMethod · 0.36
parseIDMethod · 0.36
parseDateMethod · 0.36