package authentication // String returns a string representation of an authentication.Level. func (l Level) String() string { switch l { case NotAuthenticated: return "not_authenticated" case OneFactor: return "one_factor" case TwoFactor: return "two_factor" default: return "invalid" } }