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}// SimpleScope is a simple Scoper
typeSimpleScopestruct{Keystring}// Scope fulfills Scoper
func(sSimpleScope)Scope(scopeScope)string{switchscope{caseIdentification:returns.Key+".login"caseRecovery:returns.Key+".answer"caseAuthentication:fallthroughdefault:returns.Key}}