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

Method Age

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

Source from the content-addressed store, hash-verified

11}
12
13func (u UserProfile) Age() int {
14 return time.Now().Year() - u.Birthday.Year()
15}
16
17type Author struct {
18 ID int

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected