Add test coverage to core

This commit is contained in:
2022-10-30 01:16:31 -04:00
parent 454b42c2d7
commit b542fcf901
4 changed files with 77 additions and 0 deletions

16
core/user.go Normal file
View File

@@ -0,0 +1,16 @@
package core
import "fmt"
type User struct {
ID string
}
// Mention generated a Discord mention string for the user
func (user *User) Mention() string {
if user == nil {
return "<NULL>"
}
return fmt.Sprintf("<@%s>", user.ID)
}