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

Method TotalComments

test/playground/env.go:127–133  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

125}
126
127func (b Blog) TotalComments() int {
128 var comments int
129 for _, post := range b.Posts {
130 comments += len(post.Comments)
131 }
132 return comments
133}
134
135func (Blog) Add(a, b float64) float64 {
136 return a + b

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected