Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/driangle/taskmd
/ truncateID
Function
truncateID
apps/cli/internal/cli/todos.go:195–200 ·
view source on GitHub ↗
(id string)
Source
from the content-addressed store, hash-verified
193
}
194
195
func
truncateID(id string) string {
196
if
len(id) > 8 {
197
return
id[:8]
198
}
199
return
id
200
}
201
202
func
formatAge(age int) string {
203
if
age > 0 {
Callers
1
todos.go
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected