MCPcopy Index your code
hub / github.com/git-bug/git-bug / Human

Method Human

entity/id.go:36–39  ·  view source on GitHub ↗

Human return the identifier, shortened for human consumption

()

Source from the content-addressed store, hash-verified

34
35// Human return the identifier, shortened for human consumption
36func (i Id) Human() string {
37 format := fmt.Sprintf("%%.%ds", HumanIdLength)
38 return fmt.Sprintf(format, i)
39}
40
41func (i Id) HasPrefix(prefix string) bool {
42 return strings.HasPrefix(string(i), prefix)

Callers 15

StringMethod · 0.45
StringMethod · 0.45
FinishConfigFunction · 0.45
cacheAllClientMethod · 0.45
cacheAllClientMethod · 0.45
cacheAllClientMethod · 0.45
runPullFunction · 0.45
BridgeAuthFunction · 0.45
UserFunction · 0.45
runBridgeAuthFunction · 0.45
runUserShowFunction · 0.45
userDefaultFormatterFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestBugCommentFunction · 0.36
TestBugCommentEditFunction · 0.36
TestBugRmFunction · 0.36
TestSelectFunction · 0.36