add type ConfigOption

This commit is contained in:
godcong 2020-09-28 12:48:46 +08:00
parent a2faa41cbe
commit 9bc488a6d4

View File

@ -50,6 +50,8 @@ type Config struct {
cacheStore *sync.Map
}
type ConfigOption func(*Config)
// DB GORM DB definition
type DB struct {
*Config