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: changelog.go
    path of file: ./repos/bk-cmdb/src/web_server/service
    
    the code of the file until where you have to start completion: package service

import (
	"encoding/json"
	"fmt"
	"net/http"
	"os"
	"path/filepath"
	"regexp"
	"strings"
	"time"

	"configcenter/src/common"
	cc "configcenter/src/common/backbone/configcenter"
	"configcenter/src/common/blog"
	"configcenter/src/common/metadata"
	"configcenter/src/common/util"
	"configcenter/src/common/version"
	"configcenter/src/thirdparty/hooks"
	webCommon "configcenter/src/web_server/common"

	"github.com/gin-gonic/gin"
)

// VersionListItem single version data
type VersionListItem struct {
	Version    string `json:"version"`
	UpdateTime string `json:"time"`
	IsCurrent  bool   `json:"is_current"`
}

// VersionListResult the return body of the version list data
type VersionListResult struct {

    
func getChangelogPath(language string) (string, int, error) {
	var (
		confItem      string
		changelogPath string
		err           error
	)
	switch common.LanguageType(language) {
	case common.Chinese:
		confItem = "webServer.changelogPath.ch"
		changelogPath, err = cc.String(confItem)
		if err != nil {
			return "", common.CCErrCommConfMissItem, fmt.Errorf("configuration file missing [%s] configuration item"+
				", err: %v", confItem, err)
		}
	case common.English:
		confItem = "webServer.changelogPath.en"
		changelogPath, err = cc.String(confItem)
		if err != nil {
			return "", common.CCErrCommConfMissItem, fmt.Errorf("configuration file missing [%s] configuration item"+
				", err: %v", confItem, err)
		}
	default:
		return "", common.CCErrCommParamsInvalid, fmt.Errorf("'language' data parameter verification does not pass")
	}
	return changelogPath, 0, err
}