Commit 7e93b4c3 authored by sanghg's avatar sanghg Committed by vipwzw

修复crypto中golint的警告

修复sm2的错误
parent 2d8e3bea
......@@ -13,10 +13,10 @@ type sm2Driver struct {
sm2.Driver
}
const Name = "auth_sm2"
const ID = 258
const name = "auth_sm2"
const id = 258
func init() {
crypto.Register(Name, &sm2Driver{})
crypto.RegisterType(Name, ID)
crypto.Register(name, &sm2Driver{})
crypto.RegisterType(name, id)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment