model function unit tests!
This commit is contained in:
parent
e5ae167550
commit
6db35b2f99
9 changed files with 254 additions and 16 deletions
|
@ -9,10 +9,6 @@ type (
|
|||
}
|
||||
)
|
||||
|
||||
func (artist Artist) GetWebsite() string {
|
||||
return artist.Website
|
||||
}
|
||||
|
||||
func (artist Artist) GetAvatar() string {
|
||||
if artist.Avatar == "" {
|
||||
return "/img/default-avatar.png"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue