var SigningMethodNone … const UnsafeAllowNoneSignatureType … var NoneSignatureTypeDisallowedError … type signingMethodNone … type unsafeNoneMagicConstant … func init() { … } func (m *signingMethodNone) Alg() string { … } // Only allow 'none' alg type if UnsafeAllowNoneSignatureType is specified as the key func (m *signingMethodNone) Verify(signingString, signature string, key interface{ … } // Only allow 'none' signing if UnsafeAllowNoneSignatureType is specified as the key func (m *signingMethodNone) Sign(signingString string, key interface{ … }