packagespectre// Scope is a key scope
typeScopestringconst(AuthenticationScope="Authentication"IdentificationScope="Identification"RecoveryScope="Recovery")// Scoper returns one of the three available scopes
typeScoperinterface{Scope(Scope)string}// SimpleScoper is a simple Scoper
typeSimpleScoperstruct{Keystring}// Scope fulfills Scoper
func(sSimpleScoper)Scope(scopeScope)string{switchscope{caseIdentification:returns.Key+".login"caseRecovery:returns.Key+".answer"caseAuthentication:fallthroughdefault:returns.Key}}// DefaultScoper is the default Scoper
varDefaultScoper=SimpleScoper{Key:"com.lyndir.masterpassword",}