mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-20 23:41:23 +02:00
refactor: fix lint errors; improve error handling
This commit is contained in:
@@ -4,7 +4,7 @@ import "context"
|
||||
|
||||
type ContextKey struct{}
|
||||
|
||||
func SetCtx(ctx interface{ SetValue(any, any) }, acl ACL) {
|
||||
func SetCtx(ctx interface{ SetValue(key any, value any) }, acl ACL) {
|
||||
ctx.SetValue(ContextKey{}, acl)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user