You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no way to know if a returned value was the result of the call or a cached result? This is useful to know in certain circumstances.
Something like:
// SomeMethod ... and also returns whether the value was cached result or notfunc (g*Group) SomeMethod(keystring, fnfunc() (interface{}, error)) (interface{}, bool, error) {
In the case of cached lookup the returned bool is true.