add a couple post endpoints + /timelines/home
This commit is contained in:
parent
dd72a1f4c1
commit
9f052dc9ef
24 changed files with 462 additions and 32 deletions
8
internal/utils/strings.go
Normal file
8
internal/utils/strings.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue