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: version.go
    path of file: ./repos/mahjong-helper
    
    the code of the file until where you have to start completion: package main

import (
	"net/http"
	"time"
	"fmt"
	"encoding/json"
	"github.com/fatih/color"
)

const versionDev = "dev"

// 编译时自动写入版本号
// go build -ldflags "-X main.version=$(git describe --abbrev=0 --tags)" 
    
func checkNewVersion(currentVersionTag string) {
	const latestReleasePage = "https://github.com/EndlessCheng/mahjong-helper/releases/latest"

	latestVersionTag, err := fetchLatestVersionTag()
	if err != nil {
		// 下次再说~
		return
	}

	if latestVersionTag > currentVersionTag {
		color.HiGreen("检测到新版本: %s！请前往 %s 下载", latestVersionTag, latestReleasePage)
	}
}