From 1dabe25e951514417339b663d09fb840baec26d7 Mon Sep 17 00:00:00 2001 From: eryajf <33259379+eryajf@users.noreply.github.com> Date: Wed, 13 Nov 2024 23:04:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- config/config.go | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c9463045..0b637185 100644 --- a/README.md +++ b/README.md @@ -84,7 +84,7 @@ width="800" height="3"> **赞助商** -[![](https://raw.githubusercontent.com/eryajf/tu/main/img/image_20240730_083723.webp)](https://302.ai/) +[![](https://raw.githubusercontent.com/eryajf/tu/main/img/image_20241113_230334.webp)](https://302.ai/) > [302.AI](https://302.ai) 是一个汇集全球顶级品牌的 AI 超市,按需付费,零月费,零门槛使用各种类型 AI。 > diff --git a/config/config.go b/config/config.go index 87a3b8a3..2b43e12c 100644 --- a/config/config.go +++ b/config/config.go @@ -81,8 +81,10 @@ type Configuration struct { Credentials []Credential `yaml:"credentials"` } -var config *Configuration -var once sync.Once +var ( + config *Configuration + once sync.Once +) // LoadConfig 加载配置 func LoadConfig() *Configuration { @@ -237,7 +239,6 @@ func LoadConfig() *Configuration { } } } - }) // 一些默认值