starting on guild and member fetching
This commit is contained in:
parent
9755318400
commit
aafe3e2d21
12 changed files with 149 additions and 20 deletions
|
@ -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, "/")
|
||||
}
|
||||
|
|
|
@ -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"))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue