修复gins.Set问题

This commit is contained in:
john
2018-11-05 18:57:35 +08:00
parent b456d94ccc
commit bb309a5ed0

View File

@ -41,7 +41,7 @@ func Get(key string) interface{} {
// 设置单例对象
func Set(key string, value interface{}) {
instances.Set(key, key)
instances.Set(key, value)
}
// 当键名存在时返回其键值,否则写入指定的键值