starting on guild and member fetching

This commit is contained in:
41666 2025-03-25 22:23:55 -07:00
parent 9755318400
commit aafe3e2d21
12 changed files with 149 additions and 20 deletions

View file

@ -1,7 +1,14 @@
package utils
import "fmt"
import (
"fmt"
"strings"
)
func HeadTitle(text string) string {
return fmt.Sprintf("%s | Roleypoly", text)
}
func J(parts ...string) string {
return "/" + strings.Join(parts, "/")
}

View file

@ -11,3 +11,7 @@ import (
func TestHeadTitle(t *testing.T) {
assert.Equal(t, utils.HeadTitle("Hello World"), "Hello World | Roleypoly")
}
func TestJ(t *testing.T) {
assert.Equal(t, "a/b/c", utils.J("a", "b", "c"))
}