// Generation is a helper method to convert a DeposedKey into a Generation.
// If the reciever is anything other than NotDeposed then the result is
// just the same value as a Generation. If the receiver is NotDeposed then
// the result is CurrentGen.
Generation is a helper method to convert a DeposedKey into a Generation.
If the reciever is anything other than NotDeposed then the result is
just the same value as a Generation. If the receiver is NotDeposed then
the result is CurrentGen.
// Generation is a helper method to convert a DeposedKey into a Generation . // If the reciever is anything other than NotDeposed then the result is // just the same value as a Generation . If the receiver is NotDeposed then // the result is CurrentGen .
func (k DeposedKey) Generation() Generation {
	if k == NotDeposed {
		return CurrentGen
	}
	return k
}
func ( k DeposedKey ) Generation ( ) Generation { if k == NotDeposed { return CurrentGen } return k }
Generation is a helper method to convert a DeposedKey into a Generation.
Generation is a helper method to convert a DeposedKey into a Generation .