refactor: improve styling a bit

This commit is contained in:
rramiachraf
2024-06-09 21:29:17 +01:00
parent 840d23e931
commit e6e9d5b16d
8 changed files with 118 additions and 32 deletions

9
utils/description.go Normal file
View File

@ -0,0 +1,9 @@
package utils
func TrimText(text string, keep int) string {
if len(text) > keep {
return text[0:keep] + "..."
}
return text
}