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/learning_tools/all_packaged_library/base/config
    
    the code of the file until where you have to start completion: package config

import (
	"path/filepath"
	"sync"
)
import "github.com/go-ini/ini"

var (
	utilsConfig  defaultLogToolConfig
	redisConfig  defaultRedisConfig
	minioConfig  defaultMinioConfig
	mgoConfig    defaultMgoConfig
	serverConfig defaultServerConfig
	mysqlConfig  defaultMysqlConfig

	m sync.Mutex
)

func Init(path string) {
	var
    
func Init(path string) {
	var (
		err error
		cfg *ini.File
	)

	m.Lock()
	defer m.Unlock()
	if cfg, err = ini.Load(filepath.Join(path, "db.ini")); err != nil {
		panic(err)
	}
	if err = cfg.Section("redis").MapTo(&redisConfig); err != nil {
		panic(err)
	}
	if err = cfg.Section("mysql").MapTo(&mysqlConfig); err != nil {
		panic(err)
	}
	if err = cfg.Section("mongodb").MapTo(&mgoConfig); err != nil {
		panic(err)
	}
	if err = cfg.Section("minio").MapTo(&minioConfig); err != nil {
		panic(err)
	}
	if cfg, err = ini.Load(filepath.Join(path, "tool.ini")); err != nil {
		panic(err)
	}
	if err = cfg.Section("zap").MapTo(&utilsConfig); err != nil {
		panic(err)
	}
	if err = cfg.Section("server").MapTo(&serverConfig); err != nil {
		panic(err)
	}
}