Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expr-lang/expr
/ IsAdmin
Method
IsAdmin
test/playground/env.go:29–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
}
28
29
func
(a Author) IsAdmin() bool {
30
return
a.ID == 1
31
}
32
33
type
Post
struct
{
34
ID int
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected