(post Post, tag string)
| 145 | } |
| 146 | |
| 147 | func (Blog) HasTag(post Post, tag string) bool { |
| 148 | for _, t := range post.Tags { |
| 149 | if t == tag { |
| 150 | return true |
| 151 | } |
| 152 | } |
| 153 | return false |
| 154 | } |
| 155 | |
| 156 | func (Blog) IsAdmin(author Author) bool { |
| 157 | return author.IsAdmin() |
nothing calls this directly
no outgoing calls
no test coverage detected