Beispiel #1
0
func (a *Action) ShortRepoUserName() string {
	return base.EllipsisString(a.RepoUserName, 20)
}
Beispiel #2
0
func (a *Action) ShortRepoName() string {
	return base.EllipsisString(a.RepoName, 33)
}
Beispiel #3
0
func (u *User) ShortName(length int) string {
	return base.EllipsisString(u.Name, length)
}