add a couple post endpoints + /timelines/home

This commit is contained in:
sam 2023-09-06 16:32:33 +02:00
parent dd72a1f4c1
commit 9f052dc9ef
Signed by: sam
GPG key ID: B4EF20DDE721CAA1
24 changed files with 462 additions and 32 deletions

View file

@ -0,0 +1,8 @@
package utils
import "unicode/utf8"
// StringLength returns the length of a string by counting runes.
func StringLength(s string) int {
return utf8.RuneCountInString(s)
}