Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/expr-lang/expr
/ IsZero
Method
IsZero
test/playground/env.go:69–71 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
67
}
68
69
func
(p Post) IsZero() bool {
70
return
p.ID == 0 && p.Title ==
""
&& p.Content ==
""
&& p.PublishDate.IsZero()
71
}
72
73
type
Comment
struct
{
74
ID int
Callers
2
Published
Method · 0.45
IsZero
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected