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: task.go
    path of file: ./repos/video-srt-windows/app
    
    the code of the file until where you have to start completion: package app

type VideoMultitask struct {
	MaxConcurrencyNumber int //最大运行并发数
	Total int //任务总数
	QueueFile []string //任务队列
	CurrentIndex int //已处理的下标
	FinishNumber int //已完成的任务数量

	VideoSrt *VideoSrt
}

func NewVideoMultitask(concurrencyNumber int) (*VideoMultitask) {
	app := new(VideoMultitask)
	if concurrencyNumber == 0 {
		//默认并发数
		ap
    
func (task *VideoMultitask) Run() {
	//初始参数
	task.CurrentIndex = -1
	task.FinishNumber = 0

	number := 1
	//并发调用
	for number <= task.MaxConcurrencyNumber && task.CurrentIndex < (task.Total - 1){
		if task.CurrentIndex == -1 {
			task.CurrentIndex = 0;
			path := task.QueueFile[task.CurrentIndex]
			go func() {
				task.VideoSrt.Run(path)
			}()
		} else {
			task.CurrentIndex++
			path := task.QueueFile[task.CurrentIndex]
			go func() {
				task.VideoSrt.Run(path)
			}()
		}
		number++
	}
}