1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

associate random colours with authors

This commit is contained in:
Jesse Duffield
2021-10-23 18:17:35 +11:00
parent f704707d29
commit 253504a094
5 changed files with 145 additions and 4 deletions

View File

@ -144,3 +144,10 @@ func Reverse(values []string) []string {
}
return result
}
func LimitStr(value string, limit int) string {
if len(value) > limit {
return value[:limit]
}
return value
}