Fix: avoid shadow of builtin
This commit is contained in:
parent
c61ae2d3e1
commit
87158d6c3f
@ -20,6 +20,6 @@ import (
|
|||||||
|
|
||||||
// NewFakeConfig return a fake Configer
|
// NewFakeConfig return a fake Configer
|
||||||
func NewFakeConfig() Configer {
|
func NewFakeConfig() Configer {
|
||||||
new := config.NewFakeConfig()
|
config := config.NewFakeConfig()
|
||||||
return &newToOldConfigerAdapter{delegate: new}
|
return &newToOldConfigerAdapter{delegate: config}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,9 +45,9 @@ func CfgCookieName(cookieName string) ManagerConfigOpt {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// CfgCookieName set len of session id
|
// CfgCookieName set len of session id
|
||||||
func CfgSessionIdLength(len int64) ManagerConfigOpt {
|
func CfgSessionIdLength(length int64) ManagerConfigOpt {
|
||||||
return func(config *ManagerConfig) {
|
return func(config *ManagerConfig) {
|
||||||
config.SessionIDLength = len
|
config.SessionIDLength = length
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user