MCPcopy Create free account
hub / github.com/expr-lang/expr / HasTag

Method HasTag

test/playground/env.go:147–154  ·  view source on GitHub ↗
(post Post, tag string)

Source from the content-addressed store, hash-verified

145}
146
147func (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
156func (Blog) IsAdmin(author Author) bool {
157 return author.IsAdmin()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected