示例#1
0
文件: action.go 项目: yweber/gogs
func (a *Action) ShortRepoUserName() string {
	return base.EllipsisString(a.RepoUserName, 20)
}
示例#2
0
文件: action.go 项目: yweber/gogs
func (a *Action) ShortRepoName() string {
	return base.EllipsisString(a.RepoName, 33)
}
示例#3
0
文件: user.go 项目: jessezwd/gogs
func (u *User) ShortName(length int) string {
	return base.EllipsisString(u.Name, length)
}