From 9bc488a6d41107f906877c47154cb82b5a11307c Mon Sep 17 00:00:00 2001 From: godcong Date: Mon, 28 Sep 2020 12:48:46 +0800 Subject: [PATCH] add type ConfigOption --- gorm.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gorm.go b/gorm.go index e5c4a8a4..f460292f 100644 --- a/gorm.go +++ b/gorm.go @@ -50,6 +50,8 @@ type Config struct { cacheStore *sync.Map } +type ConfigOption func(*Config) + // DB GORM DB definition type DB struct { *Config