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