Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoSimplicity/LinkMe
/ Abstract
Method
Abstract
internal/domain/post.go:59–67 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
57
}
58
59
func
(p *Post) Abstract() string {
60
// 将Content转换为一个rune切片
61
str := []rune(p.Content)
62
if
len(str) > 128 {
63
// 只保留前128个字符作为摘要
64
str = str[:128]
65
}
66
return
string(str)
67
}
Callers
1
Set
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected