From 6a57891cdccfdac04605b9f3867572724ac6d130 Mon Sep 17 00:00:00 2001 From: chenhg5 Date: Sat, 11 May 2024 09:36:44 +0800 Subject: [PATCH] update readme --- helper.go | 2 +- templates/installation/config.yml/cn.tmpl | 4 ++-- templates/installation/config.yml/en.tmpl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helper.go b/helper.go index 040d730..0391994 100644 --- a/helper.go +++ b/helper.go @@ -18,7 +18,7 @@ import ( "github.com/mgutz/ansi" ) -const version = "v1.2.28" +const version = "v1.2.29" func cliInfo() { fmt.Println("GoAdmin CLI " + version + compareVersion(version)) diff --git a/templates/installation/config.yml/cn.tmpl b/templates/installation/config.yml/cn.tmpl index 31cba54..78c399c 100644 --- a/templates/installation/config.yml/cn.tmpl +++ b/templates/installation/config.yml/cn.tmpl @@ -15,8 +15,8 @@ database: user: {{$database.User}} pwd: {{$database.Pwd}} name: {{$database.Name}} - max_idle_con: {{$database.MaxIdleCon}} - max_open_con: {{$database.MaxOpenCon}} + max_idle_con: {{$database.MaxIdleConns}} + max_open_con: {{$database.MaxOpenConns}} {{- else}} file: {{$database.File}} {{end}} diff --git a/templates/installation/config.yml/en.tmpl b/templates/installation/config.yml/en.tmpl index d36f896..f85a109 100644 --- a/templates/installation/config.yml/en.tmpl +++ b/templates/installation/config.yml/en.tmpl @@ -20,8 +20,8 @@ database: user: {{$database.User}} pwd: {{$database.Pwd}} name: {{$database.Name}} - max_idle_con: {{$database.MaxIdleCon}} - max_open_con: {{$database.MaxOpenCon}} + max_idle_con: {{$database.MaxIdleConns}} + max_open_con: {{$database.MaxOpenConns}} {{- else}} file: {{$database.File}} {{end}}