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

import (
	"fmt"
	"os"
	"github.com/fatih/color"
	"bufio"
)

func errorExit(args ...interface{}) {
	fmt.Fprintln(os.Stderr, args...)
	fmt.Println("按任意键退出...")
	bufio.NewReader(os.Stdin).ReadByte()
	os.Exit(1)
}

//

// 进张数优劣
func getWaitsCountColor(shanten int, waitsCount float64) color.Attribute {
	_getWaitsCountColor := func(fixedWaitsCount
    
func getWaitsCountColor(shanten int, waitsCount float64) color.Attribute {
	_getWaitsCountColor := func(fixedWaitsCount float64) color.Attribute {
		switch {
		case fixedWaitsCount < 13: // 4.3*3
			return color.FgHiCyan  // FgHiBlue FgHiCyan
		case fixedWaitsCount <= 18: // 6*3
			return color.FgHiYellow
		default: // >6*3
			return color.FgHiRed
		}
	}

	if shanten == 0 {
		return _getWaitsCountColor(waitsCount * 3)
	}
	weight := 1
	for i := 1; i < shanten; i++ {
		weight *= 2
	}
	return _getWaitsCountColor(waitsCount / float64(weight))
}