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: health.go
    path of file: ./repos/osmedeus/distribute
    
    the code of the file until where you have to start completion: package distribute

import (
	"fmt"
	"os"
	"path"
	"path/filepath"
	"strings"
	"sync"
	"time"

	"github.com/fatih/color"
	"github.com/j3ssie/osmedeus/libs"
	"github.com/j3ssie/osmedeus/utils"
	"github.com/jinzhu/copier"
	jsoniter "github.com/json-iterator/go"
	"github.com/panj
    
func CheckingCloudInstance(opt libs.Options) {
	if opt.Cloud.Retry == 0 {
		opt.Cloud.Retry = 8
	}

	// select all cloud instance
	instances := GetAllInstances(opt)
	if len(instances) == 0 {
		utils.WarnF("no active cloud instance running")
		return
	}

	var wg sync.WaitGroup
	p, _ := ants.NewPoolWithFunc(opt.Concurrency*5, func(i interface{}) {
		// really start to scan
		instance := i.(CloudRunner)

		var options libs.Options
		copier.Copy(&options, &opt)
		instance.Opt = opt
		instance.Provider.IsBackgroundCheck = true
		instance.Provider.InitClient()
		instance.Prepare()
		instance.HealthCheck()
		wg.Done()
	}, ants.WithPreAlloc(true))
	defer p.Release()

	utils.InforF("Evaluating the status of %v cloud instances", color.HiMagentaString("%v", len(instances)))
	for _, instance := range instances {
		wg.Add(1)
		_ = p.Invoke(instance)
	}
	wg.Wait()

}