You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: config.go
    path of file: ./repos/scan4all/lib/goSqlite_gorm/lib
    
    the code of the file until where you have to start completion: package lib

import (
	"encoding/json"
	util "github.com/hktalent/go-utils"
	"log"
)

// 服务配置
type ConfigServer struct {
	UseMysql      bool   `json:"usemysql"`
	DbUrl         string `json:"dburl"`
	DebugDbUrl    string `json:"debugdburl"`

    
func init() {
	util.RegInitFunc(func() {
		x := util.GetAllConfigData()
		if data, err := json.Marshal(x); nil == err {
			if err = json.Unmarshal(data, &GConfigServer); nil != err {
				log.Println(err)
			}
		} else {
			log.Println(err)
		}
	})
	//pwd, _ := os.Getwd()
	//var ConfigName = pwd + "/config/config.json"
	//config := viper.New()
	////config.AddConfigPath("./")
	////config.AddConfigPath("./config/")
	////config.AddConfigPath("$HOME")
	////config.AddConfigPath("/etc/")
	//config.SetConfigType("json")
	//config.SetConfigFile(ConfigName)
	//err := config.ReadInConfig() // 查找并读取配置文件
	//if err != nil {              // 处理读取配置文件的错误
	//	log.Println("config.ReadInConfig ", err)
	//	return
	//}
	//// 将读取的配置信息保存至全局变量Conf
	//if err := config.Unmarshal(&GConfigServer); err != nil {
	//	log.Println("config.Unmarshal ", err)
	//	return
	//}
	//var mData = map[string]interface{}{}
	//config.Unmarshal(&mData)
	//viper.Set("Verbose", false)

}